Class WidgetComponent
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
- API Level:
- 9
The class for showing UI module
C#Copypublic abstract class WidgetComponent : BaseComponent
- Inheritance
Methods
CreateWindowInfo(Int32, Int32)
Override this method to create window. It will be called before OnCreate method.
Declaration
C#Copypublic abstract IWindowProxy CreateWindowInfo(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
Int32 | width | The width of the widget window |
Int32 | height | The height of the widget window |
Returns
Type | Description |
---|---|
IWindowProxy | Window object to use |
API Level: 9
OnCreate(Int32, Int32)
Override this method to handle behavior when the component is launched.
Declaration
C#Copypublic abstract bool OnCreate(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
Int32 | width | The width of the widget component instance |
Int32 | height | The height of the widget component instance |
Returns
Type | Description |
---|---|
Boolean | True if a service component is successfully created |
API Level: 9
OnDestroy(Boolean)
Override this method if want to handle behavior when the component is destroyed.
Declaration
C#Copypublic virtual void OnDestroy(bool permanent)
Parameters
Type | Name | Description |
---|---|---|
Boolean | permanent | True if the instance is permanent |
API Level: 9
OnPause()
Override this method if you want to handle the behavior when the component is paused.
Declaration
C#Copypublic virtual void OnPause()
API Level: 9
OnResume()
Override this method if you want to handle the behavior when the component is resumed.
Declaration
C#Copypublic virtual void OnResume()
API Level: 9
OnStart(Boolean)
Overrid this method if want to handle behavior when the component is started.
Declaration
C#Copypublic virtual void OnStart(bool restarted)
Parameters
Type | Name | Description |
---|---|---|
Boolean | restarted | True if it was restarted |
API Level: 9
OnStop()
Override this method if you want to handle the behavior when the component is stopped.
Declaration
C#Copypublic virtual void OnStop()