Global Variable

NSURLSessionDownloadTaskResumeData

A key in the error dictionary that provides resume data.

Declaration

let NSURLSessionDownloadTaskResumeData: String

Discussion

When a transfer error occurs or when you call the cancel(byProducingResumeData:) method, the delegate object or completion handler gets an NSError object. If the transfer is resumable, that error object’s userInfo dictionary contains a value for this key. To resume the transfer, your app can pass that value to the downloadTask(withResumeData:) or downloadTask(withResumeData:completionHandler:) method.

See Also

User Info Dictionary Keys

let NSURLErrorBackgroundTaskCancelledReasonKey: String

An NSNumber value indicating why a background task was cancelled. For a list of possible values, see NSURLSession-Specific NSError userInfo Dictionary Keys.