Search Results for

    Show / Hide Table of Contents

    Class WidgetComponent

    Definition

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

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

    [Obsolete("This has been deprecated in API14")]
    public abstract class WidgetComponent : BaseComponent
    Inheritance
    object
    BaseComponent
    WidgetComponent

    Methods

    View Source

    CreateWindowInfo(int, int)

    Called to create the window for the widget. This method will be called before the OnCreate(int, int) method.

    Declaration
    [Obsolete("This has been deprecated in API14")]
    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

    An IWindowProxy object representing the window to use.

    View Source

    OnCreate(int, int)

    Called when the widget component is created. Override this method to implement custom creation behavior.

    Declaration
    [Obsolete("This has been deprecated in API14")]
    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 the widget component is successfully created; otherwise, false.

    View Source

    OnDestroy(bool)

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

    Declaration
    [Obsolete("This has been deprecated in API14")]
    public virtual void OnDestroy(bool permanent)
    Parameters
    Type Name Description
    bool permanent

    true if the instance is permanent; otherwise, false.

    View Source

    OnPause()

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

    Declaration
    [Obsolete("This has been deprecated in API14")]
    public virtual void OnPause()
    View Source

    OnResume()

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

    Declaration
    [Obsolete("This has been deprecated in API14")]
    public virtual void OnResume()
    View Source

    OnStart(bool)

    Called when the widget component is started. Override this method to handle start behavior.

    Declaration
    [Obsolete("This has been deprecated in API14")]
    public virtual void OnStart(bool restarted)
    Parameters
    Type Name Description
    bool restarted

    true if the component was restarted; otherwise, false.

    View Source

    OnStop()

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

    Declaration
    [Obsolete("This has been deprecated in API14")]
    public virtual void OnStop()
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX