Class Widget

Definition

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

Widget provides some common functionality required by all custom widget.

C#
Copy
public class Widget : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Implements

Constructors

View Source

Widget()

Creates a Widget handle.

Declaration
C#
Copy
public Widget()
API Level: 4

Methods

View Source

OnCreate(String, Window)

The user should override this function to determine when they create widget.

Declaration
C#
Copy
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 Source

OnPause()

The user should override this function to determine when they pause widget.

Declaration
C#
Copy
protected virtual void OnPause()
API Level: 4
View Source

OnResize(Window)

The user should override this function to determine when they resize widget.

Declaration
C#
Copy
protected virtual void OnResize(Window window)
Parameters
Type Name Description
Window window

Window for widget

API Level: 4
View Source

OnResume()

The user should override this function to determine when they resume widget.

Declaration
C#
Copy
protected virtual void OnResume()
API Level: 4
View Source

OnTerminate(String, Widget.TerminationType)

The user should override this function to determine when they terminate widget.

Declaration
C#
Copy
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 Source

OnUpdate(String, Int32)

The user should override this function to determine when they update widget.

Declaration
C#
Copy
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 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

SetContentInfo(String)

Set content info to WidgetView.

Declaration
C#
Copy
public void SetContentInfo(string contentInfo)
Parameters
Type Name Description
String contentInfo

Content info is kind of context information which contains current status of widget.

API Level: 4
View Source

SetUsingKeyEvent(Boolean)

Set the flag that widget is using keyEvent

Declaration
C#
Copy
public void SetUsingKeyEvent(bool flag)
Parameters
Type Name Description
Boolean flag

The flag that widget is using keyEvent.

Implements

Extension Methods