Structure

UIBackgroundTaskIdentifier

A unique token that identifies a request to run in the background.

Topics

Invalid Identifier

static let invalid: UIBackgroundTaskIdentifier

An token indicating an invalid task request. This constant should be used to initialize variables or to check for errors.

Relationships

See Also

Managing Background Execution

var backgroundRefreshStatus: UIBackgroundRefreshStatus

The ability of the app to be launched into the background so that it can perform background behaviors.

enum UIBackgroundRefreshStatus

Constants indicating whether background execution is enabled for the app.

func beginBackgroundTask(withName: String?, expirationHandler: (() -> Void)? = nil) -> UIBackgroundTaskIdentifier

Marks the beginning of a new long-running background task with the specified name.

func endBackgroundTask(UIBackgroundTaskIdentifier)

Marks the end of a specific long-running background task.

var backgroundTimeRemaining: TimeInterval

The amount of time the app has to run in the background.