Interface IUIGadget
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.UIGadget.dll
An interface that make the UIGadget object.
public interface IUIGadget
Properties
View SourceClassName
The class name of the UIGadget.
Declaration
string ClassName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MainView
The main view of the UIGadget.
Declaration
object MainView { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
State
The state of the UIGadget.
Declaration
UIGadgetLifecycleState State { get; set; }
Property Value
| Type | Description |
|---|---|
| UIGadgetLifecycleState |
UIGadgetInfo
The information of the UIGadget.
Declaration
UIGadgetInfo UIGadgetInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| UIGadgetInfo |
UIGadgetResourceManager
The resource manager of the UIGadget.
Declaration
UIGadgetResourceManager UIGadgetResourceManager { get; set; }
Property Value
| Type | Description |
|---|---|
| UIGadgetResourceManager |
Methods
View SourceFinish()
Finishes the UIGadget.
Declaration
void Finish()
OnAppControlReceived(AppControlReceivedEventArgs)
Overrides this method if want to handle behavior when the UIGadget receives the appcontrol message.
Declaration
void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| AppControlReceivedEventArgs | e | The appcontrol received event argument containing details about the received message. |
Remarks
This method provides a way to customize the response when the UIGadget receives an appcontrol message. By overriding this method in your derived class, you can define specific actions based on the incoming arguments.
OnCreate()
Override this method to define the behavior when the UIGadget is created.
Declaration
object OnCreate()
Returns
| Type | Description |
|---|---|
| object | The main view object. |
OnDestroy()
Override this method to handle the behavior when the UIGadget is destroyed.
Declaration
void OnDestroy()
OnDeviceOrientationChanged(DeviceOrientationEventArgs)
Overrides this method if want to handle behavior when the device orientation is changed.
Declaration
void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DeviceOrientationEventArgs | e | The device orientation changed event argument. |
OnLocaleChanged(LocaleChangedEventArgs)
Overrides this method if want to handle behavior when the system language is changed.
Declaration
void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| LocaleChangedEventArgs | e | The locale changed event argument. |
OnLowBattery(LowBatteryEventArgs)
Overrides this method if want to handle behavior when the system battery is low.
Declaration
void OnLowBattery(LowBatteryEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| LowBatteryEventArgs | e | The low batter event argument. |
OnLowMemory(LowMemoryEventArgs)
Overrides this method if want to handle behavior when the system memory is low.
Declaration
void OnLowMemory(LowMemoryEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| LowMemoryEventArgs | e | The low memory event argument. |
OnMessageReceived(UIGadgetMessageReceivedEventArgs)
Overrides this method if want to handle behavior when the message is received.
Declaration
void OnMessageReceived(UIGadgetMessageReceivedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| UIGadgetMessageReceivedEventArgs | e | The message received event argument. |
OnPause()
Overrides this method if want to handle behavior when the UIGadget is paused.
Declaration
void OnPause()
OnPreCreate()
Override this method to define the behavior when the UIGadget is pre-created.
Declaration
void OnPreCreate()
OnRegionFormatChanged(RegionFormatChangedEventArgs)
Overrides this method if want to handle behavior when the region format is changed.
Declaration
void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionFormatChangedEventArgs | e | The region format changed event argument. |
OnResume()
Overrides this method if want to handle behavior when the UIGadget is resumed.
Declaration
void OnResume()
SendMessage(Bundle)
Sends the message to the UIGadget. The message should be delived to the OnMessageReceived() method.
Declaration
void SendMessage(Bundle message)
Parameters
| Type | Name | Description |
|---|---|---|
| Bundle | message | The message |