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
    object
    Application
    CoreApplication
    CoreUIApplication
    Implements
    System.IDisposable

    Constructors

    View Source

    CoreUIApplication()

    Initializes the CoreUIApplication class.

    Declaration
    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
    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
    public DeviceOrientation CurrentDeviceOrientation { get; }
    Property Value
    Type Description
    DeviceOrientation

    Methods

    View Source

    GetWindowPosition()

    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.

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

    OnPreCreate()

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

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

    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
    CoreApplication.Run(string[])

    Events

    View Source

    Paused

    Occurs whenever the application is paused.

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

    Resumed

    Occurs whenever the application is resumed.

    Declaration
    public event EventHandler Resumed
    Event Type
    Type Description
    System.EventHandler

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX