Class Widget
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 4
Widget provides some common functionality required by all custom widget.
C#Copypublic class Widget : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic Widget()
API Level: 4
Methods
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | The dispose type |
Overrides
API Level: 4
OnCreate(String, Window)
The user should override this function to determine when they create widget.
Declaration
C#Copyprotected virtual void OnCreate(string contentInfo, Window window)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentInfo | Information from WidgetView for creating. It contains previous status of widget which is sent by SetContentInfo before. |
Window | window | Window for widget |
API Level: 4
Declaration
C#Copyprotected virtual void OnPause()
API Level: 4
OnResize(Window)
The user should override this function to determine when they resize widget.
Declaration
C#Copyprotected virtual void OnResize(Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | Window for widget |
API Level: 4
Declaration
C#Copyprotected virtual void OnResume()
API Level: 4
OnTerminate(String, Widget.TerminationType)
The user should override this function to determine when they terminate widget.
Declaration
C#Copyprotected virtual void OnTerminate(string contentInfo, Widget.TerminationType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentInfo | Data from WidgetView for deleting |
Widget.TerminationType | type | Termination type. When user delete widget view, termination type is PERMANENT. |
API Level: 4
OnUpdate(String, Int32)
The user should override this function to determine when they update widget.
Declaration
C#Copyprotected virtual void OnUpdate(string contentInfo, int force)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentInfo | Data from WidgetView for updating |
System.Int32 | force | Although the widget is paused, if it is true, the widget can be updated |
API Level: 4
Declaration
C#Copypublic void SetContentInfo(string contentInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentInfo | Content info is kind of context information which contains current status of widget. |