Contents

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 : URLSessionTaskDelegate

Mentioned 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

Receiving data

Handling caching

See Also

Adding data tasks to a session