Class WidgetComponent

    Definition

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

    The class for showing UI module

    public abstract class WidgetComponent : BaseComponent
    Inheritance
    object
    BaseComponent
    WidgetComponent

    Methods

    View Source

    CreateWindowInfo(int, int)

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

    Declaration
    public abstract IWindowProxy CreateWindowInfo(int width, int height)
    Parameters
    Type Name Description
    int width

    The width of the widget window

    int height

    The height of the widget window

    Returns
    Type Description
    IWindowProxy

    Window object to use

    View Source

    OnCreate(int, int)

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

    Declaration
    public abstract bool OnCreate(int width, int height)
    Parameters
    Type Name Description
    int width

    The width of the widget component instance

    int height

    The height of the widget component instance

    Returns
    Type Description
    bool

    True if a service component is successfully created

    View Source

    OnDestroy(bool)

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

    Declaration
    public virtual void OnDestroy(bool permanent)
    Parameters
    Type Name Description
    bool permanent

    True if the instance is permanent

    View Source

    OnPause()

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

    Declaration
    public virtual void OnPause()
    View Source

    OnResume()

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

    Declaration
    public virtual void OnResume()
    View Source

    OnStart(bool)

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

    Declaration
    public virtual void OnStart(bool restarted)
    Parameters
    Type Name Description
    bool restarted

    True if it was restarted

    View Source

    OnStop()

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

    Declaration
    public virtual void OnStop()
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX