background_tasks library Null safety

The low level api specific for the iOS platform, mapping to the BackgroundTasks framework.

Classes

BGAppRefreshTaskRequest
A request to launch your app in the background to execute a short refresh task.
BGProcessingTaskRequest
A request to launch your app in the background to execute a processing task that can take minutes to complete.
BGTaskRequest
An abstract class for representing task requests.

Functions

cancelAllTaskRequests() Future<void>
Cancels all scheduled task requests.
cancelTaskRequest(String identifier) Future<void>
Cancels a scheduled task request with the identifier.
initializeWorker(WorkerFn worker) Future<void>
Initializes the plugin by registering a worker callback.
simulateLaunchTask(String identifier) Future<void>
Simulate launch BGTask with the given identifier, debugging only
submitTaskRequest(BGTaskRequest request) Future<bool>
Schedules a previously registered background task for execution.