Class NUIWidgetApplication
Definition
- Assembly:
- Tizen.NUI.dll
Represents an application that have UI screen. The NUIWidgetApplication class has a default stage.
public class NUIWidgetApplication : CoreApplication
- Inheritance
Constructors
View SourceNUIWidgetApplication(Dictionary<Type, string>)
The constructor for multi widget class and instance.
Declaration
public NUIWidgetApplication(Dictionary<System.Type, string> widgetTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<, ><System.Type, string> | widgetTypes | List of derived widget class type. |
NUIWidgetApplication(Type, string)
The default constructor with stylesheet.
Declaration
public NUIWidgetApplication(System.Type widgetType, string styleSheet)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | widgetType | Derived widget class type. |
| string | styleSheet | The styleSheet url. |
Remarks
Widget ID will be replaced as the application ID.
NUIWidgetApplication(Type)
The default constructor.
Declaration
public NUIWidgetApplication(System.Type widgetType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | widgetType | Derived widget class type. |
Remarks
Widget ID will be replaced as the application ID.
Properties
View SourceIsUsingXaml
Set to true if XAML is used. This must be called before or immediately after the NUIWidgetApplication constructor is called. The default value is true.
Declaration
public static bool IsUsingXaml { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This must be called before or immediately after the NUIWidgetApplication constructor is called.
Methods
View SourceAddWidgetType(Dictionary<Type, string>)
Add WidgetInfo in runtime
Declaration
public void AddWidgetType(Dictionary<System.Type, string> widgetTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<, ><System.Type, string> | widgetTypes | Derived widget class type. |
AddWidgetType(Type)
Add WidgetInfo in runtime
Declaration
public void AddWidgetType(System.Type widgetType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | widgetType | Derived widget class type. |
Exit()
Exit NUIWidgetApplication.
Declaration
public override void Exit()
Overrides
View SourceFlushUpdateMessages()
Flush render/update thread messages synchronously.
Declaration
public void FlushUpdateMessages()
Remarks
This function will relayout forcibily. This function is used for advanced developer. It will make main-thread overhead if you call this function frequencely.
OnCreate()
Overrides this method if want to handle OnCreate behavior.
Declaration
protected override void OnCreate()
Overrides
View SourceOnDeviceOrientationChanged(DeviceOrientationEventArgs)
This method is to handle behavior when the device orientation is changed.
When device is rotated to ccw or cw, this event occurs. In addition, this event is different to window orientation changed event. The window orientation event is for per a window and occurs when some flags should be set before.
Declaration
protected override void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| DeviceOrientationEventArgs | e | The device orientation changed event argument |
Overrides
View SourceOnLocaleChanged(LocaleChangedEventArgs)
Overrides this method if want to handle OnLocaleChanged behavior.
Declaration
protected override void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| LocaleChangedEventArgs | e |
Overrides
View SourceOnLowBattery(LowBatteryEventArgs)
Overrides this method if want to handle OnLowBattery behavior.
Declaration
protected override void OnLowBattery(LowBatteryEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| LowBatteryEventArgs | e |
Overrides
View SourceOnLowMemory(LowMemoryEventArgs)
Overrides this method if want to handle OnLowMemory behavior.
Declaration
protected override void OnLowMemory(LowMemoryEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| LowMemoryEventArgs | e |
Overrides
View SourceOnPreCreate()
Overrides this method if want to handle OnPreCreate behavior.
Declaration
protected virtual void OnPreCreate()
OnRegionFormatChanged(RegionFormatChangedEventArgs)
Overrides this method if want to handle OnRegionFormatChanged behavior.
Declaration
protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionFormatChangedEventArgs | e |
Overrides
View SourceOnTerminate()
Overrides this method if want to handle OnTerminate behavior.
Declaration
protected override void OnTerminate()
Overrides
View SourceRun(string[])
Run NUIWidgetApplication.
Declaration
public override void Run(string[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | args | Arguments from commandline. |