A protocol defining methods that URL session instances call on their delegates to handle session-level events, like session life cycle changes.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the
NSURLSessionDownloadDelegate protocols to handle task-level events. These include events like the beginning and end of individual tasks, and periodic progress updates from data or download tasks.
Handling Session Life Cycle Changes
Handling Authentication Challenges
Working with a Delegate
The delegate assigned when this object was created.
A protocol defining methods that URL session instances call on their delegates to handle task-level events.
The operation queue provided when this object was created.