URLSessionDataDelegate
A protocol that defines methods that URL session instances call on their delegates to handle task-level events specific to data and upload tasks.
Declaration
protocol URLSessionDataDelegate : URLSessionTaskDelegateMentioned in
Overview
Your session delegate should also implement the methods in the URLSessionTaskDelegate protocol to handle task-level events that are common to all task types, and methods in the URLSessionDelegate protocol to handle session-level events.
Topics
Handling task life cycle changes
urlSession(_:dataTask:didReceive:completionHandler:)URLSession.ResponseDispositionurlSession(_:dataTask:didBecome:)urlSession(_:dataTask:didBecome:)