Instance Property

configuration

A copy of the configuration object for this session.

Declaration

@NSCopying var configuration: URLSessionConfiguration { get }

Discussion

Beginning in iOS 9 and OS X 10.11, URLSession objects store a copy of the URLSessionConfiguration object passed to their initializers, such that a session’s configuration is immutable after initialization. Any further changes to mutable properties on the configuration object passed to a session’s initializer or the value returned from a session’s configuration property do not affect the behavior of that session. However, you can create a new session with the modified configuration object.

See Also

Configuring a Session

var delegate: URLSessionDelegate?

The delegate assigned when this object was created.

protocol URLSessionDelegate

A protocol defining methods that URLSession instances call on their delegates to handle session-level events, like session life cycle changes.

protocol URLSessionTaskDelegate

A protocol defining methods that URLSession instances call on their delegates to handle task-level events.

var delegateQueue: OperationQueue

The operation queue provided when this object was created.

var sessionDescription: String?

An app-defined descriptive label for the session.