Tells the delegate that the data task was changed to a download task.
- iOS 7.0+
- macOS 10.9+
- 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.
When the delegate’s
URLSession: method decides to change the disposition from a data request to 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.