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.