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.
public abstract class FrameComponent : BaseComponent
- Inheritance
Properties
View SourceDisplayStatus
Gets the current display status of the component.
Declaration
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 SourceCreateWindowInfo()
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
public 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
public abstract bool OnCreate()
Returns
Type | Description |
---|---|
bool |
|
OnDestroy()
Called when the component is destroyed. Override this method to handle destruction behavior.
Declaration
public virtual void OnDestroy()
OnPause()
Called when the component is paused. Override this method to handle pause behavior.
Declaration
public virtual void OnPause()
OnResume()
Called when the component is resumed. Override this method to handle resume behavior.
Declaration
public virtual void OnResume()
OnStart(AppControl, bool)
Called when the component receives an app control message. Override this method to handle app control messages.
Declaration
public 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
public virtual void OnStop()