Structure

BGTaskScheduler.Error

The Errors for the BGTaskSchedulerError domain.

Declaration

struct Error

Topics

Error Codes

static var notPermitted: BGTaskScheduler.Error.Code

A task scheduling error indicating the app isn’t permitted to launch the task.

static var tooManyPendingTaskRequests: BGTaskScheduler.Error.Code

A task scheduling error indicating that there are too many pending tasks of the type requested.

static var unavailable: BGTaskScheduler.Error.Code

A task scheduling error indicating that the app or extension can’t schedule background work.

Error Information

var localizedDescription: String

A string containing the localized description of the error.

var errorCode: Int

An error code.

var errorUserInfo: [String : Any]

An NSDictionary containing additional details about the error.

Error Domain

static var errorDomain: String

The background tasks error domain as a string.

Operator Functions

static func != (BGTaskScheduler.Error, BGTaskScheduler.Error) -> Bool

Returns a Boolean value indicating if two background tasks errors are equal.

See Also

Errors

class let errorDomain: String

The background tasks error domain as a string.