Class NUIGadget
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.Gadget.dll
- API Level:
- 10
This class represents a NUIGadget controlled lifecycles.
C#Copypublic abstract class NUIGadget : object
- Inheritance
-
NUIGadget
Constructors
Declaration
C#Copypublic NUIGadget(NUIGadgetType type)
Parameters
Type | Name | Description |
---|---|---|
NUIGadgetType | type | The type of the NUIGadget. |
API Level: 10
Properties
Declaration
C#Copypublic string ClassName { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
This property is set before the OnCreate() is called, after the instance has been created.
API Level: 10
Declaration
C#Copypublic View MainView { get; }
Property Value
Type | Description |
---|---|
View |
API Level: 10
Declaration
C#Copypublic NUIGadgetInfo NUIGadgetInfo { get; }
Property Value
Type | Description |
---|---|
NUIGadgetInfo |
Remarks
This property is set before the OnCreate() is called, after the instance has been created.
API Level: 10
Declaration
C#Copypublic NUIGadgetResourceManager NUIGadgetResourceManager { get; }
Property Value
Type | Description |
---|---|
NUIGadgetResourceManager |
Remarks
This property is set before the OnCreate() is called, after the instance has been created.
API Level: 10
Declaration
C#Copypublic NUIGadgetLifecycleState State { get; }
Property Value
Type | Description |
---|---|
NUIGadgetLifecycleState |
API Level: 10
Declaration
C#Copypublic NUIGadgetType Type { get; }
Property Value
Type | Description |
---|---|
NUIGadgetType |
API Level: 10
Methods
Declaration
C#Copypublic void Finish()
API Level: 10
OnAppControlReceived(AppControlReceivedEventArgs)
Overrides this method if want to handle behavior when the gadget receives the appcontrol message.
Declaration
C#Copyprotected virtual void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
AppControlReceivedEventArgs | e | The appcontrol received event argument. |
API Level: 10
OnCreate()
Overrides this method if want to handle behavior when the gedget is started. If 'base.OnCreate()' is not called, the event 'NUIGadgetLifecycleChanged' with the 'NUIGadgetLifecycleState.Created' state will not be emitted.
Declaration
C#Copyprotected virtual View OnCreate()
Returns
Type | Description |
---|---|
View | The main view object. |
API Level: 10
OnDestroy()
Overrides this method if want to handle behavior when the gadget is destroyed. If 'base.OnDestroy()' is not called. the event 'NUIGadgetLifecycleChanged' with the 'NUIGadgetLifecycleState.Destroyed' state will not be emitted.
Declaration
C#Copyprotected virtual void OnDestroy()
API Level: 10
OnDeviceOrientationChanged(DeviceOrientationEventArgs)
Overrides this method if want to handle behavior when the device orientation is changed.
Declaration
C#Copyprotected virtual void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DeviceOrientationEventArgs | e | The device orientation changed event argument. |
API Level: 10
OnLocaleChanged(LocaleChangedEventArgs)
Overrides this method if want to handle behavior when the system language is changed.
Declaration
C#Copyprotected virtual void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LocaleChangedEventArgs | e | The locale changed event argument. |
API Level: 10
OnLowBattery(LowBatteryEventArgs)
Overrides this method if want to handle behavior when the system battery is low.
Declaration
C#Copyprotected virtual void OnLowBattery(LowBatteryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowBatteryEventArgs | e | The low batter event argument. |
API Level: 10
OnLowMemory(LowMemoryEventArgs)
Overrides this method if want to handle behavior when the system memory is low.
Declaration
C#Copyprotected virtual void OnLowMemory(LowMemoryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowMemoryEventArgs | e | The low memory event argument. |
API Level: 10
OnPause()
Overrides this method if want to handle behavior when the gadget is paused. If 'base.OnPause()' is not called. the event 'NUIGadgetLifecycleChanged' with the 'NUIGadgetLifecycleState.Paused' state will not be emitted.
Declaration
C#Copyprotected virtual void OnPause()
API Level: 10
OnRegionFormatChanged(RegionFormatChangedEventArgs)
Overrides this method if want to handle behavior when the region format is changed.
Declaration
C#Copyprotected virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
RegionFormatChangedEventArgs | e | The region format changed event argument. |
API Level: 10
OnResume()
Overrides this method if want to handle behavior when the gadget is resumed. If 'base.OnResume()' is not called. the event 'NUIGadgetLifecycleChanged' with the 'NUIGadgetLifecycleState.Resumed' state will not be emitted.
Declaration
C#Copyprotected virtual void OnResume()