Class WidgetView

    Definition

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

    The WidgetView is a class for displaying the widget image and controlling the widget.
    Input events that the WidgetView gets are delivered to the widget.

    public class WidgetView : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    WidgetView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    WidgetView(string, string, int, int, float)

    Creates a new WidgetView.

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

    Fields

    View Source

    EffectProperty

    EffectProperty

    Declaration
    public static readonly BindableProperty EffectProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    KeepWidgetSizeProperty

    UpdateWidgetSizeProperty

    Declaration
    public static readonly BindableProperty KeepWidgetSizeProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    LoadingTextProperty

    LoadingTextProperty

    Declaration
    public static readonly BindableProperty LoadingTextProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    PermanentDeleteProperty

    PermanentDeleteProperty

    Declaration
    public static readonly BindableProperty PermanentDeleteProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    PreviewProperty

    PreviewProperty

    Declaration
    public static readonly BindableProperty PreviewProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    RetryTextProperty

    RetryTextProperty

    Declaration
    public static readonly BindableProperty RetryTextProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    WidgetStateFaultedProperty

    WidgetStateFaultedProperty

    Declaration
    public static readonly BindableProperty WidgetStateFaultedProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    ContentInfo

    Gets the content info.

    Declaration
    public string ContentInfo { get; }
    Property Value
    Type Description
    string
    View Source

    Effect

    Gets or sets effect.

    Declaration
    public PropertyMap Effect { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    InstanceID

    Gets the ID of the instance.

    Declaration
    public string InstanceID { get; }
    Property Value
    Type Description
    string
    View Source

    KeepWidgetSize

    Gets or sets KeepWidgetSize

    if this value is true, WidgetView keep widget instance's size and don't resize even if WidgetView is resized.

    Declaration
    public bool KeepWidgetSize { get; set; }
    Property Value
    Type Description
    bool
    View Source

    LoadingText

    Gets or sets the loading text.

    Declaration
    public bool LoadingText { get; set; }
    Property Value
    Type Description
    bool
    View Source

    PermanentDelete

    Gets or sets whether the widget is to delete permanently or not.

    Declaration
    public bool PermanentDelete { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Preview

    Gets or sets the preview.

    Declaration
    public bool Preview { get; set; }
    Property Value
    Type Description
    bool
    View Source

    RetryText

    Gets or sets retry text.

    Declaration
    public PropertyMap RetryText { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    Title

    Gets the title.

    Declaration
    public string Title { get; }
    Property Value
    Type Description
    string
    View Source

    UpdatePeriod

    Gets the update period.

    Declaration
    public float UpdatePeriod { get; }
    Property Value
    Type Description
    float
    View Source

    WidgetID

    Gets the ID of the widget.

    Declaration
    public string WidgetID { get; }
    Property Value
    Type Description
    string
    View Source

    WidgetStateFaulted

    Gets or sets whether the widget state is faulted or not.

    Declaration
    public bool WidgetStateFaulted { get; set; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    ActivateFaultedWidget()

    Activates a widget in the faulted state. A widget in faulted state must be activated before adding the widget.

    Declaration
    public void ActivateFaultedWidget()
    View Source

    CancelTouchEvent()

    Cancels the touch event procedure. If you call this function after feed the touch down event, the widget will get ON_HOLD events. If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.

    Declaration
    public bool CancelTouchEvent()
    Returns
    Type Description
    bool

    True on success, false otherwise.

    View Source

    CreateWidgetView(string, string, int, int, float)

    Used in xaml as factory method to create WidgetView.

    Declaration
    public static WidgetView CreateWidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod)
    Parameters
    Type Name Description
    string widgetId
    string contentInfo
    int width
    int height
    float updatePeriod
    Returns
    Type Description
    WidgetView
    View Source

    Dispose(DisposeTypes)

    To make the Button instance be disposed.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    View.Dispose(DisposeTypes)
    View Source

    HandleControlStateOnTouch(Touch)

    The touch event handler for ControlState. Please change ControlState value by touch state if needed.

    Declaration
    protected override bool HandleControlStateOnTouch(Touch touch)
    Parameters
    Type Name Description
    Touch touch
    Returns
    Type Description
    bool
    Overrides
    View.HandleControlStateOnTouch(Touch)
    View Source

    PauseWidget()

    Pauses a given widget.

    Declaration
    public bool PauseWidget()
    Returns
    Type Description
    bool

    True on success, false otherwise.

    View Source

    ReleaseSwigCPtr(HandleRef)

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

    ResumeWidget()

    Resumes a given widget.

    Declaration
    public bool ResumeWidget()
    Returns
    Type Description
    bool

    True on success, false otherwise.

    View Source

    TerminateWidget()

    Terminate a widget instance.

    Declaration
    public bool TerminateWidget()
    Returns
    Type Description
    bool

    True on success, false otherwise

    Events

    View Source

    WidgetAdded

    An event for the WidgetAdded signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when widget is added.

    Declaration
    public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetAdded
    Event Type
    Type Description
    EventHandler<><WidgetViewEventArgs>
    View Source

    WidgetContentUpdated

    An event for the WidgetContentUpdated signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when the widget content is updated.

    Declaration
    public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetContentUpdated
    Event Type
    Type Description
    EventHandler<><WidgetViewEventArgs>
    View Source

    WidgetCreationAborted

    An event for the WidgetCreationAborted signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when the widget creation is aborted.

    Declaration
    public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetCreationAborted
    Event Type
    Type Description
    EventHandler<><WidgetViewEventArgs>
    View Source

    WidgetDeleted

    An event for the WidgetDeleted signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when the widget is deleted.

    Declaration
    public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetDeleted
    Event Type
    Type Description
    EventHandler<><WidgetViewEventArgs>
    View Source

    WidgetFaulted

    An event for the WidgetFaulted signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when the widget process is not running.

    Declaration
    public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetFaulted
    Event Type
    Type Description
    EventHandler<><WidgetViewEventArgs>
    View Source

    WidgetUpdatePeriodChanged

    An event for the WidgetUpdatePeriodChanged signal which can be used to subscribe or unsubscribe the event handler.
    This signal is emitted when the widget update period is changed.

    Declaration
    public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetUpdatePeriodChanged
    Event Type
    Type Description
    EventHandler<><WidgetViewEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<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