URLSessionDelegate
A protocol that defines methods that URL session instances call on their delegates to handle session-level events, like session life cycle changes.
Declaration
protocol URLSessionDelegate : NSObjectProtocol, SendableMentioned in
Overview
In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the URLSessionTaskDelegate, URLSessionDataDelegate, and URLSessionDownloadDelegate 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.