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#Copypublic abstract class FrameComponent : BaseComponent
- Inheritance
Properties
Declaration
C#Copypublic 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
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#Copypublic abstract IWindowInfo CreateWindowInfo()
Returns
| Type | Description |
|---|---|
| IWindowInfo | An IWindowInfo object that represents the created window. |
OnCreate()
Called when the component is launched. Override this method to implement custom launch behavior.
Declaration
C#Copypublic abstract bool OnCreate()
Returns
| Type | Description |
|---|---|
| bool |
|
OnDestroy()
Called when the component is destroyed. Override this method to handle destruction behavior.
Declaration
C#Copypublic virtual void OnDestroy()
OnPause()
Called when the component is paused. Override this method to handle pause behavior.
Declaration
C#Copypublic virtual void OnPause()
OnResume()
Called when the component is resumed. Override this method to handle resume behavior.
Declaration
C#Copypublic virtual void OnResume()
OnStart(AppControl, bool)
Called when the component receives an app control message. Override this method to handle app control messages.
Declaration
C#Copypublic virtual void OnStart(AppControl appControl, bool restarted)
Parameters
| Type | Name | Description |
|---|---|---|
| AppControl | appControl | The AppControl object containing the app control data. |
| bool | restarted |
|
OnStop()
Called when the component is stopped. Override this method to handle stop behavior.
Declaration
C#Copypublic virtual void OnStop()