Background Task Cancellation reasons

Constants that indicate why a background task was cancelled.


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



var NSURLErrorCancelledReasonUserForceQuitApplication: Int

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

var NSURLErrorCancelledReasonBackgroundUpdatesDisabled: Int

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