Class WidgetComponent

Definition

Namespace:
Tizen.Applications.ComponentBased.Common
Assembly:
Tizen.Applications.ComponentBased.dll
API Level:
9

The class for showing UI module

C#
Copy
public abstract class WidgetComponent : BaseComponent
Inheritance
System.Object
WidgetComponent

Methods

View Source

CreateWindowInfo(Int32, Int32)

Override this method to create window. It will be called before OnCreate method.

Declaration
C#
Copy
public 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
View Source

OnCreate(Int32, Int32)

Override this method to handle behavior when the component is launched.

Declaration
C#
Copy
public 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
View Source

OnDestroy(Boolean)

Override this method if want to handle behavior when the component is destroyed.

Declaration
C#
Copy
public virtual void OnDestroy(bool permanent)
Parameters
Type Name Description
Boolean permanent

True if the instance is permanent

API Level: 9
View Source

OnPause()

Override this method if you want to handle the behavior when the component is paused.

Declaration
C#
Copy
public virtual void OnPause()
API Level: 9
View Source

OnResume()

Override this method if you want to handle the behavior when the component is resumed.

Declaration
C#
Copy
public virtual void OnResume()
API Level: 9
View Source

OnStart(Boolean)

Overrid this method if want to handle behavior when the component is started.

Declaration
C#
Copy
public virtual void OnStart(bool restarted)
Parameters
Type Name Description
Boolean restarted

True if it was restarted

API Level: 9
View Source

OnStop()

Override this method if you want to handle the behavior when the component is stopped.

Declaration
C#
Copy
public virtual void OnStop()
API Level: 9