Class IconData

    Definition

    Namespace:
    Tizen.Applications.WatchfaceComplication
    Assembly:
    Tizen.Applications.WatchfaceComplication.dll

    Represents the icon data for a complication.

    public class IconData : ComplicationData
    Inheritance
    object
    ComplicationData
    IconData

    Constructors

    View Source

    IconData(string, string)

    Initializes the IconData class.

    Declaration
    public IconData(string iconPath, string extraData)
    Parameters
    Type Name Description
    string iconPath

    The icon path.

    string extraData

    The extra data.

    Examples
        protected override ComplicationData OnDataUpdateRequested(string reqestAppId, ComplicationTypes type, Bundle contextData)
        {
            if (type == ComplicationTypes.Icon)
            {
                return new IconData("Icon", "extra");
            }
            else if (type == ComplicationTypes.LongText)
            {
                return new LongTextData("longlong", "icon path", "title", null);
            }
        }
    Exceptions
    Type Condition
    System.ArgumentException

    Thrown when parameter is invalid.

    Properties

    View Source

    ExtraData

    The extra data.

    Declaration
    public string ExtraData { get; set; }
    Property Value
    Type Description
    string
    View Source

    IconPath

    The icon path data.

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

    Thrown when try to set invalid value.

    View Source

    ScreenReaderText

    The information about the screen reader text of complication data.

    Declaration
    public string ScreenReaderText { get; set; }
    Property Value
    Type Description
    string
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX