Asynchronously calls a completion callback with all data, upload, and download tasks in a session.
- iOS 7.0+
- macOS 10.9+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The completion handler to call with the list of tasks. This handler is executed on the delegate queue.
The arrays passed to the completion handler contain any tasks that you have created within the session, not including any tasks that have been invalidated after completing, failing, or being cancelled.
Managing the Session
Flushes cookies and credentials to disk, clears transient caches, and ensures that future requests occur on a new TCP connection.
Empties all cookies, caches and credential stores, removes disk files, flushes in-progress downloads to disk, and ensures that future requests occur on a new socket.
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