Class NUIGadgetManager

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.Gadget.dll
API Level:
10

This class has the methods and events of the NUIGadgetManager.

C#
Copy
public static class NUIGadgetManager : object
Inheritance
NUIGadgetManager

Methods

View Source

Add(String, String)

Adds a NUIGadget to the NUIGadgetManager.

Declaration
C#
Copy
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.

API Level: 10
View Source

GetGadgetInfos()

Gets the information of the available NUIGadgets.

Declaration
C#
Copy
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.

API Level: 10
View Source

GetGadgets()

Gets the instance of the running NUIGadgets.

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

The NUIGadget list.

API Level: 10
View Source

Load(String)

Loads an assembly of the NUIGadget.

Declaration
C#
Copy
public static void Load(string resourceType)
Parameters
Type Name Description
String resourceType

The resource type of the NUIGadget package.

API Level: 10
View Source

Pause(NUIGadget)

Pauses the running NUIGadget.

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

The NUIGadget object.

API Level: 10
View Source

Remove(NUIGadget)

Removes the NUIGadget from the NUIGadgetManager.

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

The NUIGadget object.

API Level: 10
View Source

RemoveAll()

Removes all NUIGadgets from the NUIGadgetManager.

Declaration
C#
Copy
public static void RemoveAll()
API Level: 10
View Source

Resume(NUIGadget)

Resumes the running NUIGadget.

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

The NUIGadget object.

API Level: 10
View Source

SendAppControl(NUIGadget, AppControl)

Sends the appcontrol to the running NUIGadget.

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

The NUIGadget object.

AppControl appControl

The appcontrol object.

API Level: 10

Events

View Source

NUIGadgetLifecycleChanged

Occurs when the lifecycle of the NUIGadget is changed.

Declaration
C#
Copy
public static event EventHandler<NUIGadgetLifecycleChangedEventArgs> NUIGadgetLifecycleChanged
Event Type
Type Description
EventHandler<NUIGadgetLifecycleChangedEventArgs>
API Level: 10