Class NUIGadgetManager

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.Gadget.dll

    This class has the methods and events of the NUIGadgetManager.

    public static class NUIGadgetManager
    Inheritance
    object
    NUIGadgetManager

    Methods

    View Source

    Add(string, string, bool)

    Adds a NUIGadget to the NUIGadgetManager.

    Declaration
    public static NUIGadget Add(string resourceType, string className, bool useDefaultContext)
    Parameters
    Type Name Description
    string resourceType

    The resource type of the NUIGadget package.

    string className

    The class name of the NUIGadget.

    bool useDefaultContext

    The flag it true, use a default context. Otherwise, use a new load context.

    Returns
    Type Description
    NUIGadget

    The NUIGadget object.

    View Source

    Add(string, string)

    Adds a NUIGadget to the NUIGadgetManager.

    Declaration
    public static NUIGadget Add(string resourceType, string className)
    Parameters
    Type Name Description
    string resourceType

    The resource type of the NUIGadget package.

    string className

    The class name of the NUIGadget.

    Returns
    Type Description
    NUIGadget

    The NUIGadget object.

    View Source

    GetGadgetInfos()

    Gets the information of the available NUIGadgets.

    Declaration
    public static IEnumerable<NUIGadgetInfo> GetGadgetInfos()
    Returns
    Type Description
    IEnumerable<><NUIGadgetInfo>

    The NUIGadgetInfo list.

    Remarks

    This method only returns the available gadget informations, not all installed gadget informations. The resource package of the NUIGadget can set the allowed packages using "allowed-package". When executing an application, the platform mounts the resource package into the resource path of the application.

    View Source

    GetGadgets()

    Gets the instance of the running NUIGadgets.

    Declaration
    public static IEnumerable<NUIGadget> GetGadgets()
    Returns
    Type Description
    IEnumerable<><NUIGadget>

    The NUIGadget list.

    View Source

    Load(string, bool)

    Loads an assembly of the NUIGadget.

    Declaration
    public static void Load(string resourceType, bool useDefaultContext)
    Parameters
    Type Name Description
    string resourceType

    The resource type of the NUIGadget package.

    bool useDefaultContext

    The flag if ture, use a default load context. Otherwise, use a new load context.

    View Source

    Load(string)

    Loads an assembly of the NUIGadget.

    Declaration
    public static void Load(string resourceType)
    Parameters
    Type Name Description
    string resourceType

    The resource type of the NUIGadget package.

    View Source

    Pause(NUIGadget)

    Pauses the running NUIGadget.

    Declaration
    public static void Pause(NUIGadget gadget)
    Parameters
    Type Name Description
    NUIGadget gadget

    The NUIGadget object.

    View Source

    Remove(NUIGadget)

    Removes the NUIGadget from the NUIGadgetManager.

    Declaration
    public static void Remove(NUIGadget gadget)
    Parameters
    Type Name Description
    NUIGadget gadget

    The NUIGadget object.

    View Source

    RemoveAll()

    Removes all NUIGadgets from the NUIGadgetManager.

    Declaration
    public static void RemoveAll()
    View Source

    Resume(NUIGadget)

    Resumes the running NUIGadget.

    Declaration
    public static void Resume(NUIGadget gadget)
    Parameters
    Type Name Description
    NUIGadget gadget

    The NUIGadget object.

    View Source

    SendAppControl(NUIGadget, AppControl)

    Sends the appcontrol to the running NUIGadget.

    Declaration
    public static void SendAppControl(NUIGadget gadget, AppControl appControl)
    Parameters
    Type Name Description
    NUIGadget gadget

    The NUIGadget object.

    AppControl appControl

    The appcontrol object.

    View Source

    Unload(string)

    Unloads the loaded assembly of the NUIGadget.

    Declaration
    public static void Unload(string resourceType)
    Parameters
    Type Name Description
    string resourceType

    The resource type of the NUIGadget package.

    Events

    View Source

    NUIGadgetLifecycleChanged

    Occurs when the lifecycle of the NUIGadget is changed.

    Declaration
    public static event EventHandler<NUIGadgetLifecycleChangedEventArgs> NUIGadgetLifecycleChanged
    Event Type
    Type Description
    EventHandler<><NUIGadgetLifecycleChangedEventArgs>
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX