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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software