Instance Property

delegate

The delegate assigned when this object was created.

Declaration

@property(readonly, retain) id<NSURLSessionDelegate> delegate;

Discussion

This delegate object is responsible for handling authentication challenges, for making caching decisions, and for handling other session-related events. The session object keeps a strong reference to this delegate until your app exits or explicitly invalidates the session. If you do not invalidate the session, your app leaks memory until it exits.

See Also

Working with a Delegate

NSURLSessionDelegate

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

NSURLSessionTaskDelegate

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

delegateQueue

The operation queue provided when this object was created.

Beta Software

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