Enumeration

Background Task Cancellation

Constants that indicate why a background task was canceled.

Declaration

enum : NSInteger {
    ...
};

Overview

These values are used in conjunction with the NSURLErrorBackgroundTaskCancelledReasonKey key in an NSError object’s userInfo dictionary.

Topics

Cancellation Reasons

NSURLErrorCancelledReasonUserForceQuitApplication

The operation was canceled because the user forced the app to quit.

NSURLErrorCancelledReasonBackgroundUpdatesDisabled

The operation was canceled because background updates are disabled. See Background Execution for more information.

NSURLErrorCancelledReasonInsufficientSystemResources

The operation was canceled due to insufficient system resources.

See Also

Handling Errors

NSURLSession-Specific NSError userInfo Dictionary Keys

Keys used in conjunction with NSError objects returned by the NSURLSession API.