![]() |
Essential Kit
|
The TaskServices class provides cross-platform interface to schedule or continue tasks in background. This can be used for running tasks uninterruptedly. More...
Static Public Member Functions | |
static void | Initialize (TaskServicesUnitySettings settings) |
[Optional] Initialize the Task Services module with the given settings. This call is optional and only need to be called if you have custom settings to initialize this feature. | |
static Task | AllowRunningApplicationInBackgroundUntilTaskCompletion (Task task, Callback onBackgroundProcessingQuotaWillExpireCallback=null) |
Allow application background processing until task completion. All tasks which are started other the passed task are also allowed to complete until this task completes.". | |
static Task< TResult > | AllowRunningApplicationInBackgroundUntilTaskCompletion< TResult > (Task< TResult > task, Callback onBackgroundProcessingQuotaWillExpireCallback=null) |
Allow application background processing until task completion. All tasks which are started other the passed task are also allowed to complete until this task completes.". | |
static Task | AllowRunningApplicationInBackgroundUntilCompletion (this Task task, Callback onBackgroundProcessingQuotaWillExpireCallback=null) |
Extension method for a task to allow application background processing until it's completion. All tasks which are started other the passed task are also allowed to complete until this task completes.". | |
static Task< TResult > | AllowRunningApplicationInBackgroundUntilCompletion< TResult > (this Task< TResult > task, Callback onBackgroundProcessingQuotaWillExpireCallback=null) |
Extension method for a task to allow application background processing until it's completion. All tasks which are started other the passed task are also allowed to complete until this task completes.". | |
Properties | |
static TaskServicesUnitySettings | UnitySettings [get] |
The settings used for initialization. | |
iOS platform has limited support for background execution compared to Android platform.
|
static |
settings | The settings to be used for initialization. |
The settings configure the behavior of the Task Services module.
References TaskServices.UnitySettings.
|
static |
task | Pass task to complete without interruption. |
onBackgroundProcessingQuotaWillExpireCallback | Callback triggered when background processing quota about to expire. Cleanup any resources here if you want to. |
Referenced by TaskServices.AllowRunningApplicationInBackgroundUntilCompletion().
|
static |
task | Pass task which can return a result to complete without interruption. |
onBackgroundProcessingQuotaWillExpireCallback | Callback triggered when background processing quota about to expire. Cleanup any resources here if you want to. |
Referenced by TaskServices.AllowRunningApplicationInBackgroundUntilCompletion< TResult >().
|
static |
task | Call this method on a task to complete without interruption. |
onBackgroundProcessingQuotaWillExpireCallback | Callback triggered when background processing quota about to expire. Cleanup any resources here if you want to. |
References TaskServices.AllowRunningApplicationInBackgroundUntilTaskCompletion().
|
static |
task | Call this method on a task to complete without interruption. |
onBackgroundProcessingQuotaWillExpireCallback | Callback triggered when background processing quota about to expire. Cleanup any resources here if you want to. |
References TaskServices.AllowRunningApplicationInBackgroundUntilTaskCompletion< TResult >().