Type Alias

UIBackgroundTaskIdentifier

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

Declaration

typedef NSUInteger UIBackgroundTaskIdentifier;

Topics

Invalid Identifier

UIBackgroundTaskInvalid

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

See Also

Managing Background Execution

backgroundRefreshStatus

Indicates whether the app can refresh content when running in the background.

UIBackgroundRefreshStatus

Constants indicating whether background execution is enabled for the app.

UIApplicationBackgroundRefreshStatusDidChangeNotification

Posted when the app’s status for downloading content in the background changes.

- beginBackgroundTaskWithName:expirationHandler:

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

- beginBackgroundTaskWithExpirationHandler:

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

- endBackgroundTask:

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

backgroundTimeRemaining

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