Class NUIWidgetApplication
Definition
- Assembly:
- Tizen.NUI.dll
Represents an application that have UI screen. The NUIWidgetApplication class has a default stage.
C#Copypublic class NUIWidgetApplication : CoreApplication, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
NUIWidgetApplication(Dictionary<Type, string>)
The constructor for multi widget class and instance.
Declaration
C#Copypublic NUIWidgetApplication(Dictionary<Type, string> widgetTypes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<TKey, TValue><Tizen.System.Type, string> | widgetTypes | List of derived widget class type. |
Declaration
C#Copypublic NUIWidgetApplication(Type widgetType, string styleSheet)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Type | widgetType | Derived widget class type. |
string | styleSheet | The styleSheet url. |
Remarks
Widget ID will be replaced as the application ID.
Declaration
C#Copypublic NUIWidgetApplication(Type widgetType)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Type | widgetType | Derived widget class type. |
Remarks
Widget ID will be replaced as the application ID.
Methods
Declaration
C#Copypublic override void Exit()
Overrides
Remarks
Note that calling this method will terminate the entire application. Ensure that all necessary cleanup operations are performed before calling this method.
OnCreate()
This method is called when the application is created. Override this method to handle custom initialization logic.
Declaration
C#Copyprotected override void OnCreate()
Overrides
OnLocaleChanged(LocaleChangedEventArgs)
Override this method to implement custom behavior when the system locale changes.
Declaration
C#Copyprotected override void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LocaleChangedEventArgs | e | The event arguments containing the new locale information. |
Overrides
OnLowBattery(LowBatteryEventArgs)
The OnLowBattery method is called when the device's battery level is low. This method can be overridden to implement custom behavior when the device's battery level is low.
Declaration
C#Copyprotected override void OnLowBattery(LowBatteryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowBatteryEventArgs | e | The event arguments containing the battery status. |
Overrides
OnLowMemory(LowMemoryEventArgs)
This method is called when the system is running low on memory. Overrides this method if want to handle OnLowMemory behavior.
Declaration
C#Copyprotected override void OnLowMemory(LowMemoryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowMemoryEventArgs | e | The event arguments containing the memory status. |
Overrides
OnPreCreate()
Overrides this method if you want to handle behavior before the application is created. This method is guaranteed to be called before OnCreate() is called.
Declaration
C#Copyprotected virtual void OnPreCreate()
OnRegionFormatChanged(RegionFormatChangedEventArgs)
This method can be overridden to implement custom behavior when the region format changes.
Declaration
C#Copyprotected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
RegionFormatChangedEventArgs | e | The event arguments containing information about the region format change. |
Overrides
OnTerminate()
This method is called when the application is terminated. This method is overridden to perform custom actions when the application terminates.
Declaration
C#Copyprotected override void OnTerminate()
Overrides
Run(string[])
Runs the NUI widget application. This method starts the main loop of the application.
Declaration
C#Copypublic override void Run(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | Arguments from commandline. |