Class Widget

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    Widget provides some common functionality required by all custom widget.

    public class Widget : BaseHandle, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Widget
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    Widget()

    Default constructor to create a Widget handle.

    Declaration
    public Widget()

    Methods

    View Source

    OnCreate(string, Window)

    The user should override this function to determine when they create widget.

    Declaration
    protected virtual void OnCreate(string contentInfo, Window window)
    Parameters
    Type Name Description
    string contentInfo

    Information from WidgetView for creating. It contains previous status of widget which is sent by SetContentInfo before.

    Window window

    Window for widget

    View Source

    OnPause()

    The user should override this function to determine when they pause widget.

    Declaration
    protected virtual void OnPause()
    View Source

    OnResize(Window)

    The user should override this function to determine when they resize widget.

    Declaration
    protected virtual void OnResize(Window window)
    Parameters
    Type Name Description
    Window window

    Window for widget

    View Source

    OnResume()

    The user should override this function to determine when they resume widget.

    Declaration
    protected virtual void OnResume()
    View Source

    OnTerminate(string, TerminationType)

    The user should override this function to determine when they terminate widget.

    Declaration
    protected virtual void OnTerminate(string contentInfo, Widget.TerminationType type)
    Parameters
    Type Name Description
    string contentInfo

    Data from WidgetView for deleting

    Widget.TerminationType type

    Termination type. When user delete widget view, termination type is PERMANENT.

    View Source

    OnUpdate(string, int)

    The user should override this function to determine when they update widget.

    Declaration
    protected virtual void OnUpdate(string contentInfo, int force)
    Parameters
    Type Name Description
    string contentInfo

    Data from WidgetView for updating

    int force

    Although the widget is paused, if it is true, the widget can be updated

    View Source

    SetContentInfo(string)

    Set content info to WidgetView.

    Declaration
    public void SetContentInfo(string contentInfo)
    Parameters
    Type Name Description
    string contentInfo

    Content info is kind of context information which contains current status of widget.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX