Class AvatarPropertyMapper
Definition
- Assembly:
- Tizen.AIAvatar.dll
The AvatarPropertyMapper class manages property mapping information for specific attributes of an Avatar model. It primarily maps the names of AvatarProperty to their actual storage locations. By doing so, developers can directly read or write the values of these properties using their respective names. This approach provides consistency and convenience when working with Avatar models.
public class AvatarPropertyMapper
- Inheritance
-
objectAvatarPropertyMapper
Constructors
View SourceAvatarPropertyMapper()
Create an initialized AvatarPropertyNameMapper.
Declaration
public AvatarPropertyMapper()
AvatarPropertyMapper(AvatarPropertyMapper)
Copy constructor.
Creates a new instance of the AvatarPropertyMapper class by copying the contents of another existing AvatarPropertyMapper instance.
Declaration
public AvatarPropertyMapper(AvatarPropertyMapper source)
Parameters
| Type | Name | Description |
|---|---|---|
| AvatarPropertyMapper | source | The source AvatarPropertyMapper instance to be copied. |
Properties
View Sourcethis[uint]
Indexer method. Allows accessing and setting the property names using array notation.
Declaration
public string this[uint index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | The index of property what we want to set |
Property Value
| Type | Description |
|---|---|
| string | The index of property, or uint.MaxValue if not exist |
Mapper
Get current mapper information.
Declaration
public Dictionary<uint, string> Mapper { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<, ><uint, string> |
Methods
View SourceGetPropertyIndexByName(string)
Returns the index of a property by its name.
Declaration
public uint GetPropertyIndexByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of property what we want to get index |
Returns
| Type | Description |
|---|---|
| uint | The index of property, or uint.MaxValue if not exist |
GetPropertyName(uint)
Gets the property name at the given index.
Declaration
public string GetPropertyName(uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | The index of property what we want to set |
Returns
| Type | Description |
|---|---|
| string | The name of property, or null if not exist |
RegisterCustomProperty(string)
Registers a custom property by name and returns its index.
Declaration
public uint RegisterCustomProperty(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of custom property |
Returns
| Type | Description |
|---|---|
| uint | The index of property matched with name. |
SetPropertyName(uint, string)
Sets the property name at the given index.
Declaration
public void SetPropertyName(uint index, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | The index of property what we want to set |
| string | name | The name of property what we want to set |