Class CoreTask
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
- API Level:
- 10
Represents the CoreTask interface.
C#Copypublic class CoreTask : object, ICoreTask
- Inheritance
-
CoreTask
- Implements
Constructors
Declaration
C#Copypublic CoreTask()
API Level: 10
Methods
OnAppControlReceived(AppControlReceivedEventArgs)
This method is to handle behavior when the task of the application receives the appcontrol message.
Declaration
C#Copypublic virtual void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
AppControlReceivedEventArgs | e |
API Level: 10
OnCreate()
This method is to handle behavior when the task of the application is created.
Declaration
C#Copypublic virtual void OnCreate()
API Level: 10
OnDeviceOrientationChanged(DeviceOrientationEventArgs)
This method is to handle behavior when the device orientation is changed.
Declaration
C#Copypublic virtual void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DeviceOrientationEventArgs | e | The device orientation changed event argument |
API Level: 10
OnLocaleChanged(LocaleChangedEventArgs)
This method is to handle behavior when the system language is changed.
Declaration
C#Copypublic virtual void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LocaleChangedEventArgs | e | The locale changed event argument |
API Level: 10
OnLowBattery(LowBatteryEventArgs)
This method is to handle behavior when the system battery is low.
Declaration
C#Copypublic virtual void OnLowBattery(LowBatteryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowBatteryEventArgs | e | The low battery event argument |
API Level: 10
OnLowMemory(LowMemoryEventArgs)
This method is to handle behavior when the system memory is low.
Declaration
C#Copypublic virtual void OnLowMemory(LowMemoryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowMemoryEventArgs | e | The low memory event argument |
API Level: 10
OnRegionFormatChanged(RegionFormatChangedEventArgs)
This method is to handle behavior when the region format is changed.
Declaration
C#Copypublic virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
RegionFormatChangedEventArgs | e | The region format changed event argument |
API Level: 10
OnTerminate()
This method is to handle behavior when the task of the application is terminated.
Declaration
C#Copypublic virtual void OnTerminate()
API Level: 10
OnUIEvent(UIEventArgs)
This method is to handle behavior when the application is resumed or paused.
Declaration
C#Copypublic virtual void OnUIEvent(UIEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
UIEventArgs | e | The UI event argument. |
API Level: 10
Declaration
C#Copypublic 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
Declaration
C#Copypublic 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.