Class CoreTask

Definition

Namespace:
Tizen.Applications
Assembly:
Tizen.Applications.Common.dll
API Level:
10

Represents the CoreTask interface.

C#
Copy
public class CoreTask : object, ICoreTask
Inheritance
CoreTask
Implements

Constructors

View Source

CoreTask()

Initializes the CoreTask class.

Declaration
C#
Copy
public CoreTask()
API Level: 10

Methods

View Source

OnAppControlReceived(AppControlReceivedEventArgs)

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

Declaration
C#
Copy
public virtual void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
Type Name Description
AppControlReceivedEventArgs e
API Level: 10
View Source

OnCreate()

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

Declaration
C#
Copy
public virtual void OnCreate()
API Level: 10
View Source

OnDeviceOrientationChanged(DeviceOrientationEventArgs)

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

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

The device orientation changed event argument

API Level: 10
View Source

OnLocaleChanged(LocaleChangedEventArgs)

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

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

The locale changed event argument

API Level: 10
View Source

OnLowBattery(LowBatteryEventArgs)

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

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

The low battery event argument

API Level: 10
View Source

OnLowMemory(LowMemoryEventArgs)

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

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

The low memory event argument

API Level: 10
View Source

OnRegionFormatChanged(RegionFormatChangedEventArgs)

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

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

The region format changed event argument

API Level: 10
View Source

OnTerminate()

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

Declaration
C#
Copy
public virtual void OnTerminate()
API Level: 10
View Source

OnUIEvent(UIEventArgs)

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

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

The UI event argument.

API Level: 10
View Source

Post(Action)

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

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

API Level: 10
View Source

Post<T>(Func<T>)

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

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

API Level: 10

Implements

Extension Methods