Class FaceInfoCommand
Definition
- Namespace:
- Tizen.Content.MediaContent
- Assembly:
- Tizen.Content.MediaContent.dll
- API Level:
- 4
Provides commands to manage face information in the database.
C#Copypublic class FaceInfoCommand : MediaCommand
- Inheritance
Constructors
FaceInfoCommand(MediaDatabase)
Initializes a new instance of the FaceInfoCommand class with the specified MediaDatabase.
Declaration
C#Copypublic FaceInfoCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
MediaDatabase | database | The MediaDatabase that the commands run on. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException |
|
API Level: 4
Methods
Declaration
C#Copypublic bool Delete(string faceInfoId)
Parameters
Type | Name | Description |
---|---|---|
System.String | faceInfoId | The face information ID to delete. |
Returns
Type | Description |
---|---|
System.Boolean | true if the matched record was found and deleted, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
UnauthorizedAccessException | The caller has no required privilege. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
Insert(String, Rectangle, Orientation)
Inserts new face information to the database with the specified media ID, area, orientation.
Declaration
C#Copypublic FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to be associated with the face. |
Rectangle | area | The region of face in the media. |
Orientation | orientation | The orientation of the specified media. |
Returns
Type | Description |
---|---|
FaceInfo | The FaceInfo containing the results. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
UnauthorizedAccessException | The caller has no required privilege. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
Insert(String, Rectangle, Orientation, String)
Inserts new face information to the database with the specified media ID, area, orientation, and tag.
Declaration
C#Copypublic FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation, string tag)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to be associated with the face. |
Rectangle | area | The region of face in the media. |
Orientation | orientation | The orientation of specified media. |
System.String | tag | The tag value. |
Returns
Type | Description |
---|---|
FaceInfo | The FaceInfo containing the results. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
UnauthorizedAccessException | The caller has no required privilege. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
Declaration
C#Copypublic MediaDataReader<FaceInfo> Select()
Returns
Type | Description |
---|---|
MediaDataReader<FaceInfo> | The MediaDataReader<TRecord> containing the results. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic MediaDataReader<FaceInfo> Select(SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
SelectArguments | filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
MediaDataReader<FaceInfo> | The MediaDataReader<TRecord> containing the results. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic bool UpdateTag(string faceInfoId, string tag)
Parameters
Type | Name | Description |
---|---|---|
System.String | faceInfoId | The face information ID to update. |
System.String | tag | The tag value for update. |
Returns
Type | Description |
---|---|
System.Boolean | true if the matched record was found and updated, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
UnauthorizedAccessException | The caller has no required privilege. |