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
    object
    BaseComponent
    FrameComponent

    Properties

    View Source

    DisplayStatus

    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 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
    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
    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
    public virtual void OnDestroy()
    View Source

    OnPause()

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

    Declaration
    public virtual void OnPause()
    View Source

    OnResume()

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

    Declaration
    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
    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
    public virtual void OnStop()
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX