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.
public class WidgetView : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
System.Object
Tizen.NUI.Binding.Element
WidgetView
- Implements
-
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Constructors
Declaration
public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod)
Parameters
Type |
Name |
Description |
System.String |
widgetId |
|
System.String |
contentInfo |
|
Int32 |
width |
|
Int32 |
height |
|
System.Single |
updatePeriod |
|
API Level: 3
Properties
Declaration
public string ContentInfo { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public PropertyMap Effect { get; set; }
Property Value
API Level: 4
Declaration
public string InstanceID { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public bool LoadingText { get; set; }
Property Value
API Level: 3
View Source
Gets or sets whether the widget is to delete permanently or not.
Declaration
public bool PermanentDelete { get; set; }
Property Value
API Level: 3
Declaration
public bool Preview { get; set; }
Property Value
API Level: 3
Declaration
public PropertyMap RetryText { get; set; }
Property Value
API Level: 4
Declaration
public string Title { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public float UpdatePeriod { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
Declaration
public string WidgetID { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
View Source
Gets or sets whether the widget state is faulted or not.
Declaration
public bool WidgetStateFaulted { get; set; }
Property Value
API Level: 3
Methods
View Source
Activates a widget in the faulted state.
A widget in faulted state must be activated before adding the widget.
Declaration
public void ActivateFaultedWidget()
API Level: 3
View Source
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 |
Boolean |
True on success, false otherwise.
|
API Level: 3
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
API Level: 3
Declaration
public bool PauseWidget()
Returns
Type |
Description |
Boolean |
True on success, false otherwise.
|
API Level: 3
Declaration
public bool ResumeWidget()
Returns
Type |
Description |
Boolean |
True on success, false otherwise.
|
API Level: 3
Declaration
public bool TerminateWidget()
Returns
Type |
Description |
Boolean |
True on success, false otherwise
|
API Level: 4
Events
View Source
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
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
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetContentUpdated
Event Type
API Level: 3
View Source
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
API Level: 3
View Source
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
API Level: 3
View Source
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
API Level: 3
View Source
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
API Level: 3
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable