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#
Copy
public class CoreUIApplication : CoreApplication, IDisposable
Inheritance
object
CoreUIApplication
Implements
System.IDisposable

Constructors

View Source

CoreUIApplication()

Initializes the CoreUIApplication class.

Declaration
C#
Copy
public CoreUIApplication()
Remarks

By calling this constructor, the default backend for the UI application will be used.

View Source

CoreUIApplication(ICoreBackend)

Initializes the CoreUIApplication class.

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

CurrentDeviceOrientation

Gets the current device orientation.

Declaration
C#
Copy
public DeviceOrientation CurrentDeviceOrientation { get; }
Property Value
Type Description
DeviceOrientation

Methods

View Source

GetWindowPosition()

Gets the window position of the application.

Declaration
C#
Copy
public WindowPosition GetWindowPosition()
Returns
Type Description
WindowPosition

The window position.

Exceptions
Type Condition
System.InvalidOperationException

Thrown if there is no valid window position available.

View Source

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#
Copy
protected virtual void OnPause()
View Source

OnPreCreate()

Overrides this method if you want to handle any specific actions before calling the OnCreate() method.

Declaration
C#
Copy
protected virtual void OnPreCreate()
View Source

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#
Copy
protected virtual void OnResume()
View Source

Run(string[])

Runs the UI application's main loop.

Declaration
C#
Copy
public override void Run(string[] args)
Parameters
Type Name Description
string[] args

Arguments from the commandline.

Overrides

Events

View Source

Paused

Occurs whenever the application is paused.

Declaration
C#
Copy
public event EventHandler Paused
Event Type
Type Description
System.EventHandler
View Source

Resumed

Occurs whenever the application is resumed.

Declaration
C#
Copy
public event EventHandler Resumed
Event Type
Type Description
System.EventHandler

Implements

System.IDisposable