Protocol NSURLSession Delegate
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+ Beta tvOS 9.0+ watchOS 2.0+ Declaration @protocol NSURLSessionDelegate
In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the
, NSURLSession Task Delegate , and NSURLSession Data Delegate 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. NSURLSession Download Delegate
object doesn’t need to have a delegate. If no delegate is assigned, a system-provided delegate is used, and you must provide a completion callback to obtain the data.
NSURLSession Topics Handling Session Life Cycle Changes Handling Authentication Challenges See Also Working with a Delegate delegate
The delegate assigned when this object was created.
NSURLSession Task Delegate
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.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
Learn more about using Apple's beta software