Class CoreUIApplication

Definition

Namespace:
Tizen.Applications
Assembly:
Tizen.Applications.UI.dll
API Level:
3

Represents an application that has an UI screen. The events for resuming and pausing are provided.

C#
Copy
public class CoreUIApplication : CoreApplication, IDisposable
Inheritance
System.Object
CoreUIApplication
Implements
System.IDisposable

Constructors

View Source

CoreUIApplication()

Initializes the CoreUIApplication class.

Declaration
C#
Copy
public CoreUIApplication()
Remarks

The default backend for the UI application will be used.

API Level: 3
View Source

CoreUIApplication(ICoreBackend)

Initializes the CoreUIApplication class.

Declaration
C#
Copy
public CoreUIApplication(ICoreBackend backend)
Parameters
Type Name Description
ICoreBackend backend

The backend instance implementing the ICoreBacked interface.

Remarks

If you want to change the backend, use this constructor.

API Level: 3

Properties

View Source

CurrentDeviceOrientation

Gets the current device orientation.

Declaration
C#
Copy
public DeviceOrientation CurrentDeviceOrientation { get; }
Property Value
Type Description
DeviceOrientation
API Level: 6

Methods

View Source

OnPause()

Overrides this method if you want to handle the behavior when the application is paused. If base.OnPause() is not called, the event 'Paused' will not be emitted.

Declaration
C#
Copy
protected virtual void OnPause()
API Level: 3
View Source

OnPreCreate()

Overrides this method if you want to handle the behavior before calling OnCreate().

Declaration
C#
Copy
protected virtual void OnPreCreate()
API Level: 3
View Source

OnResume()

Overrides this method if you want to handle the behavior when the application is resumed. If base.OnResume() is not called, the event 'Resumed' will not be emitted.

Declaration
C#
Copy
protected virtual void OnResume()
API Level: 3
View Source

Run(String[])

Runs the UI application's main loop.

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

Arguments from the commandline.

Overrides
API Level: 3

Events

View Source

Paused

Occurs whenever the application is paused.

Declaration
C#
Copy
public event EventHandler Paused
Event Type
Type Description
System.EventHandler
API Level: 3
View Source

Resumed

Occurs whenever the application is resumed.

Declaration
C#
Copy
public event EventHandler Resumed
Event Type
Type Description
System.EventHandler
API Level: 3

Implements

System.IDisposable