Class FaceInfoCommand
Definition
- Namespace:
- Tizen.Content.Media
Content
- Assembly:
- Tizen.Content.MediaContent.dll
Provides commands to manage face information in the database.
public class FaceInfoCommand : MediaCommand
- Inheritance
Constructors
View SourceFaceInfoCommand(MediaDatabase)
Initializes a new instance of the Face
Declaration
public FaceInfoCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
Media |
database | The Media |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
See Also
Methods
View SourceDelete(string)
Deletes the face information from the database.
Declaration
public bool Delete(string faceInfoId)
Parameters
Type | Name | Description |
---|---|---|
string | faceInfoId | The face information ID to delete. |
Returns
Type | Description |
---|---|
bool | true if the matched record was found and deleted, otherwise false. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
System. |
The caller has no required privilege. |
See Also
View SourceInsert(string, Rectangle, Orientation, string)
Inserts new face information to the database with the specified media ID, area, orientation, and tag.
Declaration
public FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation, string tag)
Parameters
Type | Name | Description |
---|---|---|
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. |
string | tag | The tag value. |
Returns
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
System. |
The caller has no required privilege. |
See Also
View SourceInsert(string, Rectangle, Orientation)
Inserts new face information to the database with the specified media ID, area, orientation.
Declaration
public FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
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
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
System. |
The caller has no required privilege. |
See Also
View SourceSelect()
Retrieves the face information.
Declaration
public MediaDataReader<FaceInfo> Select()
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceSelect(SelectArguments)
Retrieves the face information with the Select
Declaration
public MediaDataReader<FaceInfo> Select(SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
Select |
filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceUpdateTag(string, string)
Updates a tag with the specified tag.
Declaration
public bool UpdateTag(string faceInfoId, string tag)
Parameters
Type | Name | Description |
---|---|---|
string | faceInfoId | The face information ID to update. |
string | tag | The tag value for update. |
Returns
Type | Description |
---|---|
bool | true if the matched record was found and updated, otherwise false. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
System. |
The caller has no required privilege. |