Instance Property

backgroundRefreshStatus

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

Declaration

var backgroundRefreshStatus: UIBackgroundRefreshStatus { get }

Discussion

This property reflects whether the app can be launched into the background to handle background behaviors, such as processing background location updates and performing background fetches. If your app relies on being launched into the background to perform tasks, you can use the value of this property to determine if doing so is possible and to warn the user if it is not. Do not warn the user if the value of this property is set to restricted; a restricted user does not have the ability to enable multitasking for the app.

See Also

Managing Background Execution

var applicationState: UIApplicationState

The runtime state of the app.

var backgroundTimeRemaining: TimeInterval

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

func setMinimumBackgroundFetchInterval(TimeInterval)

Specifies the minimum amount of time that must elapse between background fetch operations.

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

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

func beginBackgroundTask(expirationHandler: (() -> Void)? = nil)

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

func endBackgroundTask(UIBackgroundTaskIdentifier)

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