Class StickerData

    Definition

    Namespace:
    Tizen.Uix.Sticker
    Assembly:
    Tizen.Uix.Sticker.dll

    The StickerData provides the methods to get/set the sticker data.

    public class StickerData : IDisposable
    Inheritance
    object
    StickerData
    Implements
    System.IDisposable

    Constructors

    View Source

    StickerData()

    The public constructor.

    Declaration
    public StickerData()
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This can occur due to the following reasons:

    1. This exception can be due to out of memory.
    2. This exception can be due to operation failed.

    Properties

    View Source

    AppId

    Gets the name of the sticker provider application from sticker data.

    Declaration
    public string AppId { get; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This exception can be due to no data available.

    View Source

    Description

    Gets/Sets the description of the sticker data.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    View Source

    DisplayType

    Gets/Sets the display type of the sticker data.

    Declaration
    public DisplayType DisplayType { get; set; }
    Property Value
    Type Description
    DisplayType
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.ArgumentException

    This exception can be due to an invalid parameter.

    View Source

    GroupName

    Gets/Sets the group name of the sticker data.

    Declaration
    public string GroupName { get; set; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This exception can be due to no data available.

    View Source

    LastUpdated

    Gets the last update date from sticker data.

    Declaration
    public DateTime LastUpdated { get; }
    Property Value
    Type Description
    System.DateTime
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This exception can be due to no data available.

    View Source

    Thumbnail

    Gets/Sets the thumbnail local path of the sticker data.

    Declaration
    public string Thumbnail { get; set; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.ArgumentException

    This exception can be due to an invalid parameter.

    View Source

    Uri

    Gets the URI from sticker data.

    Declaration
    public string Uri { get; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This exception can be due to no data available.

    View Source

    UriType

    Gets the URI type from sticker data.

    Declaration
    public UriType UriType { get; }
    Property Value
    Type Description
    UriType
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This exception can be due to no data available.

    Methods

    View Source

    AddKeyword(string)

    Adds a keyword of the sticker to the list.

    Declaration
    public void AddKeyword(string keyword)
    Parameters
    Type Name Description
    string keyword

    The keyword to be saved.

    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.ArgumentException

    This exception can be due to an invalid parameter.

    View Source

    Dispose()

    Release any unmanaged resources used by this object.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Release any unmanaged resources used by this object.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    If true, disposes any disposable objects. If false, does not dispose disposable objects.

    View Source

    ~StickerData()

    The destructor of the StickerData class.

    Declaration
    protected ~StickerData()
    View Source

    GetAllKeywords()

    Retrieves all keywords of the sticker data.

    Declaration
    public IEnumerable<string> GetAllKeywords()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T><string>
    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.InvalidOperationException

    This exception can be due to no data available.

    View Source

    RemoveKeyword(string)

    Removes a keyword of the sticker from the list.

    Declaration
    public void RemoveKeyword(string keyword)
    Parameters
    Type Name Description
    string keyword

    The keyword to be removed.

    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.ArgumentException

    This exception can be due to an invalid parameter.

    View Source

    SetUri(UriType, string)

    Sets the URI of the sticker data.

    Declaration
    public void SetUri(UriType uriType, string uri)
    Parameters
    Type Name Description
    UriType uriType

    The URI type to be saved.

    string uri

    The URI to be saved.

    Remarks

    uri must be a path inside the app package directory like 'res/smile.png' when the type of URI is local path.

    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.ArgumentException

    This exception can be due to an invalid parameter.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX