Global Variable

NSURLErrorBackgroundTaskCancelledReasonKey

A key in the error dictionary that provides the reason for canceling a background task.

Declaration

NSString *const NSURLErrorBackgroundTaskCancelledReasonKey;

Discussion

The value associated with this key is an NSNumber. For a list of possible values, see URL Session Background Task Cancellation Reasons.

See Also

Keys

NSURLErrorFailingURLErrorKey

The URL which caused a load to fail.

NSURLErrorFailingURLPeerTrustErrorKey

The state of a failed SSL handshake.

NSURLErrorFailingURLStringErrorKey

The URL which caused a load to fail.

URL Session Background Task Cancellation Reasons

Reasons that indicate why the system canceled a background task.

NSURLErrorNetworkUnavailableReasonKey

The reason the network was unavailable for a task.

NSURLErrorNetworkUnavailableReason

An enumeration of reasons why a task couldn’t satisfy networking constraints.