Class WidgetControl

    Definition

    Namespace:
    Tizen.Applications
    Assembly:
    Tizen.Applications.WidgetControl.dll

    The class for receiving widget events and sending data to the widget.

    public class WidgetControl : IDisposable
    Inheritance
    object
    WidgetControl

    Constructors

    View Source

    WidgetControl(string)

    The constructor of the WidgetControl object.

    Declaration
    public WidgetControl(string widgetId)
    Parameters
    Type Name Description
    string widgetId

    Widget ID.

    Properties

    View Source

    Id

    The widget ID.

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

    IsNoDisplay

    The flag value for "nodisplay".

    Declaration
    public bool IsNoDisplay { get; }
    Property Value
    Type Description
    bool
    View Source

    MainAppId

    Gets main appid of the widget.

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

    MaxCount

    Gets widget max count

    Declaration
    public int MaxCount { get; }
    Property Value
    Type Description
    int
    View Source

    PackageId

    Gets package ID of the widget.

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

    SetupAppId

    Gets setup app ID of the widget.

    Declaration
    public string SetupAppId { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    CreateAll(string)

    Factory method for the WidgetControl. It will create all the objects of WidgetControl based on the package ID.

    Declaration
    public static WidgetControl[] CreateAll(string pkgId)
    Parameters
    Type Name Description
    string pkgId

    Package ID.

    Returns
    Type Description
    WidgetControl[]

    The widget control array.

    View Source

    Dispose()

    Releases all the resources used by the WidgetControl class.

    Declaration
    public void Dispose()
    View Source

    ~WidgetControl()

    Finalizer of the WidgetControl class.

    Declaration
    protected ~WidgetControl()
    View Source

    GetIconPath(string)

    Gets the widget icon path.

    Declaration
    public string GetIconPath(string lang)
    Parameters
    Type Name Description
    string lang

    Language.

    Returns
    Type Description
    string

    The widget icon path.

    View Source

    GetInstanceCount()

    Gets widget instance count

    Declaration
    public int GetInstanceCount()
    Returns
    Type Description
    int

    The widget instance count.

    View Source

    GetInstances()

    Gets the objects for widget instance information.

    Declaration
    public IEnumerable<WidgetControl.Instance> GetInstances()
    Returns
    Type Description
    IEnumerable<><Instance>

    The instances list.

    View Source

    GetName(string)

    Gets the widget name.

    Declaration
    public string GetName(string lang)
    Parameters
    Type Name Description
    string lang

    Language.

    Returns
    Type Description
    string

    The widget name.

    View Source

    GetScales()

    Gets the objects for widget scale information.

    Declaration
    public IEnumerable<WidgetControl.Scale> GetScales()
    Returns
    Type Description
    IEnumerable<><Scale>

    The scales list.

    View Source

    GetWidgetIds(string)

    Gets all the widget IDs by the package ID.

    Declaration
    public static string[] GetWidgetIds(string pkgId)
    Parameters
    Type Name Description
    string pkgId

    Package ID.

    Returns
    Type Description
    string[]

    The widget id array.

    Events

    View Source

    Created

    The event handler for a created widget instance.

    Declaration
    public event EventHandler<WidgetLifecycleEventArgs> Created
    Event Type
    Type Description
    EventHandler<><WidgetLifecycleEventArgs>
    View Source

    Destroyed

    The event handler for a destroyed widget instance.

    Declaration
    public event EventHandler<WidgetLifecycleEventArgs> Destroyed
    Event Type
    Type Description
    EventHandler<><WidgetLifecycleEventArgs>
    View Source

    Paused

    The event handler for a paused widget instance.

    Declaration
    public event EventHandler<WidgetLifecycleEventArgs> Paused
    Event Type
    Type Description
    EventHandler<><WidgetLifecycleEventArgs>
    View Source

    Resumed

    The event handler for a resumed widget instance.

    Declaration
    public event EventHandler<WidgetLifecycleEventArgs> Resumed
    Event Type
    Type Description
    EventHandler<><WidgetLifecycleEventArgs>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    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