Class AvatarPropertyMapper

    Definition

    Namespace:
    Tizen.AIAvatar
    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
    object
    AvatarPropertyMapper

    Constructors

    View Source

    AvatarPropertyMapper()

    Create an initialized AvatarPropertyNameMapper.

    Declaration
    public AvatarPropertyMapper()
    View Source

    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 Source

    this[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

    View Source

    Mapper

    Get current mapper information.

    Declaration
    public Dictionary<uint, string> Mapper { get; }
    Property Value
    Type Description
    Dictionary<, ><uint, string>

    Methods

    View Source

    GetPropertyIndexByName(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

    View Source

    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

    View Source

    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.

    View Source

    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

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX