Class CoreUIApplication
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.UI.dll
Represents an application that has an UI screen. It provides events for handling resume and pause actions.
C#Copypublic class CoreUIApplication : CoreApplication, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic CoreUIApplication()
Remarks
By calling this constructor, the default backend for the UI application will be used.
Declaration
C#Copypublic CoreUIApplication(ICoreBackend backend)
Parameters
Type | Name | Description |
---|---|---|
ICoreBackend | backend | The custom implementation of the ICoreBackend interface that provides customized functionalities. |
Remarks
This constructor is called if you need to modify the default behavior by providing a custom implementation of the ICoreBackend interface. By passing in your own backend instance, you can customize the application's functionality according to your requirements.
Properties
Declaration
C#Copypublic DeviceOrientation CurrentDeviceOrientation { get; }
Property Value
Type | Description |
---|---|
DeviceOrientation |
Methods
Declaration
C#Copypublic WindowPosition GetWindowPosition()
Returns
Type | Description |
---|---|
WindowPosition | The window position. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if there is no valid window position available. |
OnPause()
Override this method to define the behavior when the application is paused. Calling base.OnPause() is required in order for the Paused event to be raised.
Declaration
C#Copyprotected virtual void OnPause()
OnPreCreate()
Overrides this method if you want to handle any specific actions before calling the OnCreate() method.
Declaration
C#Copyprotected virtual void OnPreCreate()
OnResume()
Override this method to define the behavior when the application is resumed. Calling base.OnResume() is required in order for the Resumed event to be raised.
Declaration
C#Copyprotected virtual void OnResume()
Declaration
C#Copypublic override void Run(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | Arguments from the commandline. |
Overrides
Events
Declaration
C#Copypublic event EventHandler Paused
Event Type
Type | Description |
---|---|
System.EventHandler |
Declaration
C#Copypublic event EventHandler Resumed
Event Type
Type | Description |
---|---|
System.EventHandler |