Interface IUIGadget

    Definition

    Namespace:
    Tizen.Applications
    Assembly:
    Tizen.Applications.UIGadget.dll

    An interface that make the UIGadget object.

    public interface IUIGadget

    Properties

    View Source

    ClassName

    The class name of the UIGadget.

    Declaration
    string ClassName { get; set; }
    Property Value
    Type Description
    string
    View Source

    MainView

    The main view of the UIGadget.

    Declaration
    object MainView { get; set; }
    Property Value
    Type Description
    object
    View Source

    State

    The state of the UIGadget.

    Declaration
    UIGadgetLifecycleState State { get; set; }
    Property Value
    Type Description
    UIGadgetLifecycleState
    View Source

    UIGadgetInfo

    The information of the UIGadget.

    Declaration
    UIGadgetInfo UIGadgetInfo { get; set; }
    Property Value
    Type Description
    UIGadgetInfo
    View Source

    UIGadgetResourceManager

    The resource manager of the UIGadget.

    Declaration
    UIGadgetResourceManager UIGadgetResourceManager { get; set; }
    Property Value
    Type Description
    UIGadgetResourceManager

    Methods

    View Source

    Finish()

    Finishes the UIGadget.

    Declaration
    void Finish()
    View Source

    OnAppControlReceived(AppControlReceivedEventArgs)

    Overrides this method if want to handle behavior when the UIGadget receives the appcontrol message.

    Declaration
    void OnAppControlReceived(AppControlReceivedEventArgs e)
    Parameters
    Type Name Description
    AppControlReceivedEventArgs e

    The appcontrol received event argument containing details about the received message.

    Remarks

    This method provides a way to customize the response when the UIGadget receives an appcontrol message. By overriding this method in your derived class, you can define specific actions based on the incoming arguments.

    View Source

    OnCreate()

    Override this method to define the behavior when the UIGadget is created.

    Declaration
    object OnCreate()
    Returns
    Type Description
    object

    The main view object.

    View Source

    OnDestroy()

    Override this method to handle the behavior when the UIGadget is destroyed.

    Declaration
    void OnDestroy()
    View Source

    OnDeviceOrientationChanged(DeviceOrientationEventArgs)

    Overrides this method if want to handle behavior when the device orientation is changed.

    Declaration
    void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
    Parameters
    Type Name Description
    DeviceOrientationEventArgs e

    The device orientation changed event argument.

    View Source

    OnLocaleChanged(LocaleChangedEventArgs)

    Overrides this method if want to handle behavior when the system language is changed.

    Declaration
    void OnLocaleChanged(LocaleChangedEventArgs e)
    Parameters
    Type Name Description
    LocaleChangedEventArgs e

    The locale changed event argument.

    View Source

    OnLowBattery(LowBatteryEventArgs)

    Overrides this method if want to handle behavior when the system battery is low.

    Declaration
    void OnLowBattery(LowBatteryEventArgs e)
    Parameters
    Type Name Description
    LowBatteryEventArgs e

    The low batter event argument.

    View Source

    OnLowMemory(LowMemoryEventArgs)

    Overrides this method if want to handle behavior when the system memory is low.

    Declaration
    void OnLowMemory(LowMemoryEventArgs e)
    Parameters
    Type Name Description
    LowMemoryEventArgs e

    The low memory event argument.

    View Source

    OnMessageReceived(UIGadgetMessageReceivedEventArgs)

    Overrides this method if want to handle behavior when the message is received.

    Declaration
    void OnMessageReceived(UIGadgetMessageReceivedEventArgs e)
    Parameters
    Type Name Description
    UIGadgetMessageReceivedEventArgs e

    The message received event argument.

    View Source

    OnPause()

    Overrides this method if want to handle behavior when the UIGadget is paused.

    Declaration
    void OnPause()
    View Source

    OnPreCreate()

    Override this method to define the behavior when the UIGadget is pre-created.

    Declaration
    void OnPreCreate()
    View Source

    OnRegionFormatChanged(RegionFormatChangedEventArgs)

    Overrides this method if want to handle behavior when the region format is changed.

    Declaration
    void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
    Parameters
    Type Name Description
    RegionFormatChangedEventArgs e

    The region format changed event argument.

    View Source

    OnResume()

    Overrides this method if want to handle behavior when the UIGadget is resumed.

    Declaration
    void OnResume()
    View Source

    SendMessage(Bundle)

    Sends the message to the UIGadget. The message should be delived to the OnMessageReceived() method.

    Declaration
    void SendMessage(Bundle message)
    Parameters
    Type Name Description
    Bundle message

    The message

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX