Class FrameComponent

Definition

Namespace:
Tizen.Applications.ComponentBased.Common
Assembly:
Tizen.Applications.ComponentBased.dll

Represents a base class for UI components in the component-based application model. This class provides methods for handling the lifecycle and state of UI components.

C#
Copy
public abstract class FrameComponent : BaseComponent
Inheritance
object
FrameComponent

Properties

View Source

DisplayStatus

Gets the current display status of the component.

Declaration
C#
Copy
public DisplayStatus DisplayStatus { get; }
Property Value
Type Description
DisplayStatus

The current DisplayStatus of the component.

Exceptions
Type Condition
System.InvalidOperationException

Thrown when the display status cannot be retrieved.

Methods

View Source

CreateWindowInfo()

Called to create the window for the component. Override this method to provide a custom window. This method will be called before OnCreate() method.

Declaration
C#
Copy
public abstract IWindowInfo CreateWindowInfo()
Returns
Type Description
IWindowInfo

An IWindowInfo object that represents the created window.

View Source

OnCreate()

Called when the component is launched. Override this method to implement custom launch behavior.

Declaration
C#
Copy
public abstract bool OnCreate()
Returns
Type Description
bool

true if the service component is successfully created; otherwise, false.

View Source

OnDestroy()

Called when the component is destroyed. Override this method to handle destruction behavior.

Declaration
C#
Copy
public virtual void OnDestroy()
View Source

OnPause()

Called when the component is paused. Override this method to handle pause behavior.

Declaration
C#
Copy
public virtual void OnPause()
View Source

OnResume()

Called when the component is resumed. Override this method to handle resume behavior.

Declaration
C#
Copy
public virtual void OnResume()
View Source

OnStart(AppControl, bool)

Called when the component receives an app control message. Override this method to handle app control messages.

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

The AppControl object containing the app control data.

bool restarted

true if the component was restarted; otherwise, false.

View Source

OnStop()

Called when the component is stopped. Override this method to handle stop behavior.

Declaration
C#
Copy
public virtual void OnStop()