Tells the delegate that the task is waiting until suitable connectivity is available before beginning the network load.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
The session that contains the waiting task.
The task that is waiting for a change in connectivity.
This method is called if the
waits property of
true, and sufficient connectivity is unavailable. The delegate can use this opportunity to update the user interface; for example, by presenting an offline mode or a cellular-only mode.
This method is called, at most, once per task, and only if connectivity is initially unavailable. It is never called for background sessions because
waits is ignored for those sessions.