Enumeration Case

NSURLSessionResponseBecomeDownload

Convert the response for this request to use a NSURLSessionDownloadTask.

Declaration

NSURLSessionResponseBecomeDownload = 2

Discussion

When used with the completion handler from URLSession:dataTask:didReceiveResponse:completionHandler:, this disposition converts the data task to a download task. This will result in your delegate’s URLSession:dataTask:didBecomeDownloadTask: being called to provide you with the new download task that supersedes the current task.

See Also

Task Dispositions

NSURLSessionResponseAllow

Allow the load operation to continue.

NSURLSessionResponseBecomeStream

Convert the response for this request to use a NSURLSessionStreamTask.

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