Tells the delegate that the data task was changed to a download task.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The session containing the task that was replaced by a download task.
The data task that was replaced by a download task.
The new download task that replaced the data task.
URLSession: delegate method uses the
NSURLSession disposition to convert the request to use a download, the session calls this delegate method to provide you with the new download task. After this call, the session delegate receives no further delegate method calls related to the original data task.