Register a launch handler for the task with the associated identifier that’s executed on the specified queue.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
A string containing the identifier of the task.
A queue for executing the task. Pass
nilto use a default background queue.
The system runs the block of code for the launch handler when it launches the app in the background. The block takes a single parameter, a
BGTaskobject used for assigning an expiration handler and for setting a completion status. The block has no return value.