Enumeration

UIBackgroundRefreshStatus

Constants indicating whether background execution is enabled for the app.

Declaration

typedef enum UIBackgroundRefreshStatus : NSInteger {
    ...
} UIBackgroundRefreshStatus;

Topics

Constants

UIBackgroundRefreshStatusRestricted

Background updates are unavailable and the user cannot enable them again. For example, this status can occur when parental controls are in effect for the current user.

UIBackgroundRefreshStatusDenied

The user explicitly disabled background behavior for this app or for the whole system.

UIBackgroundRefreshStatusAvailable

Background updates are available for the app.

See Also

Managing Background Execution

backgroundRefreshStatus

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

UIApplicationBackgroundRefreshStatusDidChangeNotification

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

- beginBackgroundTaskWithName:expirationHandler:

Mark the start of a task that should continue if the app enters the background.

- beginBackgroundTaskWithExpirationHandler:

Mark the start of a task that should continue if the app enters the background.

- endBackgroundTask:

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

UIBackgroundTaskIdentifier

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

backgroundTimeRemaining

The maximum amount of time remaining for the app to run in the background.