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

NSURLErrorCancelledReasonBackgroundUpdatesDisabled

A reason that indicates the system canceled the background task because background tasks are disabled.

NSURLErrorCancelledReasonInsufficientSystemResources

A reason that indicates the system canceled the background task because it lacks sufficient resources to perform the task.

NSURLErrorCancelledReasonUserForceQuitApplication

A reason that indicates the system canceled the background task because the user force-quit the application.

See Also

Handling Errors

URL Session Error Dictionary Keys

Keys used in conjunction with error objects returned by URL sessions and tasks.