Class WidgetView

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

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.

C#
Copy
public class WidgetView : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

WidgetView(String, String, Int32, Int32, Single)

Creates a new WidgetView.

Declaration
C#
Copy
public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod)
Parameters
Type Name Description
String widgetId
String contentInfo
Int32 width
Int32 height
Single updatePeriod
API Level: 3

Fields

View Source

EffectProperty

EffectProperty

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

KeepWidgetSizeProperty

UpdateWidgetSizeProperty

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

LoadingTextProperty

LoadingTextProperty

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

PermanentDeleteProperty

PermanentDeleteProperty

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

PreviewProperty

PreviewProperty

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

RetryTextProperty

RetryTextProperty

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

WidgetStateFaultedProperty

WidgetStateFaultedProperty

Declaration
C#
Copy
public static readonly BindableProperty WidgetStateFaultedProperty
Field Value
Type Description
BindableProperty

Properties

View Source

ContentInfo

Gets the content info.

Declaration
C#
Copy
public string ContentInfo { get; }
Property Value
Type Description
String
API Level: 3
View Source

Effect

Gets or sets effect.

Declaration
C#
Copy
public PropertyMap Effect { get; set; }
Property Value
Type Description
PropertyMap
API Level: 4
View Source

InstanceID

Gets the ID of the instance.

Declaration
C#
Copy
public string InstanceID { get; }
Property Value
Type Description
String
API Level: 3
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
C#
Copy
public bool KeepWidgetSize { get; set; }
Property Value
Type Description
Boolean
View Source

LoadingText

Gets or sets the loading text.

Declaration
C#
Copy
public bool LoadingText { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

PermanentDelete

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

Declaration
C#
Copy
public bool PermanentDelete { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

Preview

Gets or sets the preview.

Declaration
C#
Copy
public bool Preview { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

RetryText

Gets or sets retry text.

Declaration
C#
Copy
public PropertyMap RetryText { get; set; }
Property Value
Type Description
PropertyMap
API Level: 4
View Source

Title

Gets the title.

Declaration
C#
Copy
public string Title { get; }
Property Value
Type Description
String
API Level: 3
View Source

UpdatePeriod

Gets the update period.

Declaration
C#
Copy
public float UpdatePeriod { get; }
Property Value
Type Description
Single
API Level: 3
View Source

WidgetID

Gets the ID of the widget.

Declaration
C#
Copy
public string WidgetID { get; }
Property Value
Type Description
String
API Level: 3
View Source

WidgetStateFaulted

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

Declaration
C#
Copy
public bool WidgetStateFaulted { get; set; }
Property Value
Type Description
Boolean
API Level: 3

Methods

View Source

ActivateFaultedWidget()

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

Declaration
C#
Copy
public void ActivateFaultedWidget()
API Level: 3
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
C#
Copy
public bool CancelTouchEvent()
Returns
Type Description
Boolean

True on success, false otherwise.

API Level: 3
View Source

CreateWidgetView(String, String, Int32, Int32, Single)

Used in xaml as factory method to create WidgetView.

Declaration
C#
Copy
public static WidgetView CreateWidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod)
Parameters
Type Name Description
String widgetId
String contentInfo
Int32 width
Int32 height
Single updatePeriod
Returns
Type Description
WidgetView
View Source

Dispose(DisposeTypes)

To make the Button instance be disposed.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
API Level: 3
View Source

HandleControlStateOnTouch(Touch)

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

Declaration
C#
Copy
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type Name Description
Touch touch
Returns
Type Description
Boolean
Overrides
View Source

PauseWidget()

Pauses a given widget.

Declaration
C#
Copy
public bool PauseWidget()
Returns
Type Description
Boolean

True on success, false otherwise.

API Level: 3
View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

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

ResumeWidget()

Resumes a given widget.

Declaration
C#
Copy
public bool ResumeWidget()
Returns
Type Description
Boolean

True on success, false otherwise.

API Level: 3
View Source

TerminateWidget()

Terminate a widget instance.

Declaration
C#
Copy
public bool TerminateWidget()
Returns
Type Description
Boolean

True on success, false otherwise

API Level: 4

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
C#
Copy
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetAdded
Event Type
Type Description
EventHandler<WidgetView.WidgetViewEventArgs>
API Level: 3
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
C#
Copy
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetContentUpdated
Event Type
Type Description
EventHandler<WidgetView.WidgetViewEventArgs>
API Level: 3
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
C#
Copy
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetCreationAborted
Event Type
Type Description
EventHandler<WidgetView.WidgetViewEventArgs>
API Level: 3
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
C#
Copy
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetDeleted
Event Type
Type Description
EventHandler<WidgetView.WidgetViewEventArgs>
API Level: 3
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
C#
Copy
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetFaulted
Event Type
Type Description
EventHandler<WidgetView.WidgetViewEventArgs>
API Level: 3
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
C#
Copy
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetUpdatePeriodChanged
Event Type
Type Description
EventHandler<WidgetView.WidgetViewEventArgs>
API Level: 3

Implements

Extension Methods