Class Widget
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 4
Widget provides some common functionality required by all custom widget.
public class Widget : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
Constructors
View SourceWidget()
Creates a Widget handle.
Declaration
public Widget()
API Level: 4
Methods
View SourceOnCreate(String, Window)
The user should override this function to determine when they create widget.
Declaration
protected virtual void OnCreate(string contentInfo, Window window)
Parameters
Type | Name | Description |
---|---|---|
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
View SourceOnPause()
The user should override this function to determine when they pause widget.
Declaration
protected virtual void OnPause()
API Level: 4
View SourceOnResize(Window)
The user should override this function to determine when they resize widget.
Declaration
protected virtual void OnResize(Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | Window for widget |
API Level: 4
View SourceOnResume()
The user should override this function to determine when they resume widget.
Declaration
protected virtual void OnResume()
API Level: 4
View SourceOnTerminate(String, Widget.TerminationType)
The user should override this function to determine when they terminate widget.
Declaration
protected virtual void OnTerminate(string contentInfo, Widget.TerminationType type)
Parameters
Type | Name | Description |
---|---|---|
String | contentInfo | Data from WidgetView for deleting |
Widget.TerminationType | type | Termination type. When user delete widget view, termination type is PERMANENT. |
API Level: 4
View SourceOnUpdate(String, Int32)
The user should override this function to determine when they update widget.
Declaration
protected virtual void OnUpdate(string contentInfo, int force)
Parameters
Type | Name | Description |
---|---|---|
String | contentInfo | Data from WidgetView for updating |
Int32 | force | Although the widget is paused, if it is true, the widget can be updated |
API Level: 4
View SourceSetContentInfo(String)
Set content info to WidgetView.
Declaration
public void SetContentInfo(string contentInfo)
Parameters
Type | Name | Description |
---|---|---|
String | contentInfo | Content info is kind of context information which contains current status of widget. |