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.
public class CoreUIApplication : CoreApplication, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceCoreUIApplication()
Initializes the CoreUIApplication class.
Declaration
public CoreUIApplication()
Remarks
By calling this constructor, the default backend for the UI application will be used.
CoreUIApplication(ICoreBackend)
Initializes the CoreUIApplication class.
Declaration
public 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
View SourceCurrentDeviceOrientation
Gets the current device orientation.
Declaration
public DeviceOrientation CurrentDeviceOrientation { get; }
Property Value
Type | Description |
---|---|
DeviceOrientation |
Methods
View SourceGetWindowPosition()
Gets the window position of the application.
Declaration
public 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
protected virtual void OnPause()
OnPreCreate()
Overrides this method if you want to handle any specific actions before calling the OnCreate() method.
Declaration
protected 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
protected virtual void OnResume()
Run(string[])
Runs the UI application's main loop.
Declaration
public override void Run(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | Arguments from the commandline. |
Overrides
Events
View SourcePaused
Occurs whenever the application is paused.
Declaration
public event EventHandler Paused
Event Type
Type | Description |
---|---|
System.EventHandler |
Resumed
Occurs whenever the application is resumed.
Declaration
public event EventHandler Resumed
Event Type
Type | Description |
---|---|
System.EventHandler |