Class WidgetComponent
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
The class for showing UI module
public abstract class WidgetComponent : BaseComponent
- Inheritance
Methods
View SourceCreateWindowInfo(int, int)
Override this method to create window. It will be called before OnCreate method.
Declaration
public 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
public 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
public 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
public virtual void OnPause()
OnResume()
Override this method if you want to handle the behavior when the component is resumed.
Declaration
public virtual void OnResume()
OnStart(bool)
Overrid this method if want to handle behavior when the component is started.
Declaration
public 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
public virtual void OnStop()