Class NUIGadgetManager
Definition
- Assembly:
- Tizen.NUI.Gadget.dll
This class has the methods and events of the NUIGadgetManager.
public static class NUIGadgetManager
- Inheritance
-
objectNUIGadgetManager
Methods
View SourceAdd(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. |
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. |
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.
GetGadgets()
Gets the instance of the running NUIGadgets.
Declaration
public static IEnumerable<NUIGadget> GetGadgets()
Returns
Type | Description |
---|---|
IEnumerable<><NUIGadget> | The NUIGadget list. |
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. |
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. |
Pause(NUIGadget)
Pauses the running NUIGadget.
Declaration
public static void Pause(NUIGadget gadget)
Parameters
Type | Name | Description |
---|---|---|
NUIGadget | gadget | The NUIGadget object. |
Remove(NUIGadget)
Removes the NUIGadget from the NUIGadgetManager.
Declaration
public static void Remove(NUIGadget gadget)
Parameters
Type | Name | Description |
---|---|---|
NUIGadget | gadget | The NUIGadget object. |
RemoveAll()
Removes all NUIGadgets from the NUIGadgetManager.
Declaration
public static void RemoveAll()
Resume(NUIGadget)
Resumes the running NUIGadget.
Declaration
public static void Resume(NUIGadget gadget)
Parameters
Type | Name | Description |
---|---|---|
NUIGadget | gadget | The NUIGadget object. |
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. |
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 SourceNUIGadgetLifecycleChanged
Occurs when the lifecycle of the NUIGadget is changed.
Declaration
public static event EventHandler<NUIGadgetLifecycleChangedEventArgs> NUIGadgetLifecycleChanged
Event Type
Type | Description |
---|---|
EventHandler<><NUIGadgetLifecycleChangedEventArgs> |