Class WidgetViewManager

    Definition

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

    WidgetViewManager manages addition of WidgetView controls. This class provides the functionality of adding the widget views and controlling the widgets.

    public class WidgetViewManager : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    WidgetViewManager
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    WidgetViewManager(NUIApplication, string)

    Creates a new widgetView manager object.

    Declaration
    public WidgetViewManager(NUIApplication nuiApplication, string appId)
    Parameters
    Type Name Description
    NUIApplication nuiApplication
    string appId

    Properties

    View Source

    Instance

    Gets the singleton of the WidgetViewManager object.

    Declaration
    public static WidgetViewManager Instance { get; }
    Property Value
    Type Description
    WidgetViewManager

    Methods

    View Source

    AddWidget(string, string, int, int, float)

    Creates a new widget view object.

    Declaration
    public WidgetView AddWidget(string widgetId, string contentInfo, int width, int height, float updatePeriod)
    Parameters
    Type Name Description
    string widgetId

    The widget ID.

    string contentInfo

    Contents that will be given to the widget instance.

    int width

    The widget width.

    int height

    The widget height.

    float updatePeriod

    The period of updating contents of the widget.

    Returns
    Type Description
    WidgetView

    A handle to WidgetView.

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    BaseHandle.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
    View Source

    RemoveWidget(WidgetView)

    Remove a widget view object.

    Declaration
    public bool RemoveWidget(WidgetView widgetView)
    Parameters
    Type Name Description
    WidgetView widgetView

    widgetView to remove

    Returns
    Type Description
    bool

    True on success, false otherwise.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    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