Class CoreTask
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
Represents the CoreTask interface.
public class CoreTask : ICoreTask
- Inheritance
-
objectCoreTask
- Implements
Constructors
View SourceCoreTask()
Initializes the CoreTask class.
Declaration
public CoreTask()
Methods
View SourceOnAppControlReceived(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 |
OnCreate()
This method is to handle behavior when the task of the application is created.
Declaration
public virtual void OnCreate()
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 |
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 |
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 |
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 |
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 |
OnTerminate()
This method is to handle behavior when the task of the application is terminated.
Declaration
public virtual void OnTerminate()
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. |
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.
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.