Tells the delegate that a delayed URL session task will now begin loading.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
The session containing the delayed request.
The task handling the delayed request.
The request that was delayed.
A completion handler to perform the request. The completion handler takes two parameters: a disposition that tells the task how to proceed, and a new request object that is only used if the disposition is
.Delayed Request Disposition .use New Request
This method is called when a background session task with a delayed start time (as set with the
earliest property) is ready to start. This delegate method should only be implemented if the request might become stale while waiting for the network load and needs to be replaced by a new request.
For loading to continue, the delegate must call the completion handler, passing in a disposition that indicates how the task should proceed. Passing the
URLSession disposition is equivalent to calling
cancel() on the task directly.