Class WidgetComponent
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
The class for showing UI module
C#Copypublic abstract class WidgetComponent : BaseComponent
- Inheritance
Methods
CreateWindowInfo(int, int)
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 |
|---|---|---|
| int | width | The width of the widget window |
| int | height | The height of the widget window |
Returns
| Type | Description |
|---|---|
| IWindowProxy | Window object to use |
OnCreate(int, int)
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 |
|---|---|---|
| int | width | The width of the widget component instance |
| int | height | The height of the widget component instance |
Returns
| Type | Description |
|---|---|
| bool | True if a service component is successfully created |
OnDestroy(bool)
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 |
|---|---|---|
| bool | permanent | True if the instance is permanent |
OnPause()
Override this method if you want to handle the behavior when the component is paused.
Declaration
C#Copypublic virtual void OnPause()
OnResume()
Override this method if you want to handle the behavior when the component is resumed.
Declaration
C#Copypublic virtual void OnResume()
OnStart(bool)
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 |
|---|---|---|
| bool | restarted | True if it was restarted |
OnStop()
Override this method if you want to handle the behavior when the component is stopped.
Declaration
C#Copypublic virtual void OnStop()