Class CoreTask

    Definition

    Namespace:
    Tizen.Applications
    Assembly:
    Tizen.Applications.Common.dll

    Represents the CoreTask interface.

    public class CoreTask : ICoreTask
    Inheritance
    object
    CoreTask
    Implements
    ICoreTask

    Constructors

    View Source

    CoreTask()

    Initializes the CoreTask class.

    Declaration
    public CoreTask()

    Methods

    View Source

    OnAppControlReceived(AppControlReceivedEventArgs)

    This method is to handle behavior when the task of the application receives the appcontrol message.

    Declaration
    public virtual void OnAppControlReceived(AppControlReceivedEventArgs e)
    Parameters
    Type Name Description
    AppControlReceivedEventArgs e
    View Source

    OnCreate()

    This method is to handle behavior when the task of the application is created.

    Declaration
    public virtual void OnCreate()
    View Source

    OnDeviceOrientationChanged(DeviceOrientationEventArgs)

    This method is to handle behavior when the device orientation is changed.

    Declaration
    public virtual void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
    Parameters
    Type Name Description
    DeviceOrientationEventArgs e

    The device orientation changed event argument

    View Source

    OnLocaleChanged(LocaleChangedEventArgs)

    This method is to handle behavior when the system language is changed.

    Declaration
    public virtual void OnLocaleChanged(LocaleChangedEventArgs e)
    Parameters
    Type Name Description
    LocaleChangedEventArgs e

    The locale changed event argument

    View Source

    OnLowBattery(LowBatteryEventArgs)

    This method is to handle behavior when the system battery is low.

    Declaration
    public virtual void OnLowBattery(LowBatteryEventArgs e)
    Parameters
    Type Name Description
    LowBatteryEventArgs e

    The low battery event argument

    View Source

    OnLowMemory(LowMemoryEventArgs)

    This method is to handle behavior when the system memory is low.

    Declaration
    public virtual void OnLowMemory(LowMemoryEventArgs e)
    Parameters
    Type Name Description
    LowMemoryEventArgs e

    The low memory event argument

    View Source

    OnRegionFormatChanged(RegionFormatChangedEventArgs)

    This method is to handle behavior when the region format is changed.

    Declaration
    public virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
    Parameters
    Type Name Description
    RegionFormatChangedEventArgs e

    The region format changed event argument

    View Source

    OnTerminate()

    This method is to handle behavior when the task of the application is terminated.

    Declaration
    public virtual void OnTerminate()
    View Source

    OnUIEvent(UIEventArgs)

    This method is to handle behavior when the application is resumed or paused.

    Declaration
    public virtual void OnUIEvent(UIEventArgs e)
    Parameters
    Type Name Description
    UIEventArgs e

    The UI event argument.

    View Source

    Post(Action)

    Dispatches an asynchronous message to a main loop of the CoreTask.

    Declaration
    public static void Post(Action runner)
    Parameters
    Type Name Description
    Action runner

    The runner callback.

    Remarks

    The asynchronous message will be delivered to the main thread.

    View Source

    Post<T>(Func<T>)

    Dispatches an asynchronous message to a main loop of the CoreTask.

    Declaration
    public static Task<T> Post<T>(Func<T> runner)
    Parameters
    Type Name Description
    Func<><T> runner

    The runner callback.

    Returns
    Type Description
    Task<><T>

    A task with the result.

    Type Parameters
    Name Description
    T

    The type of the result.

    Remarks

    The asynchronous message will be delivered to the main thread.

    Implements

    ICoreTask

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX