AppAuth
Class Methods | List of all members
OIDURLSessionProvider Class Reference

A NSURLSession provider that allows clients to provide custom implementation for NSURLSession. More...

#import <OIDURLSessionProvider.h>

Inheritance diagram for OIDURLSessionProvider:

Class Methods

(NSURLSession *) + session
 Obtains the current NSURLSession; using the +[NSURLSession sharedSession] if no custom implementation is provided. More...
 
(void) + setSession:
 Allows library consumers to change the NSURLSession instance used to make network requests. More...
 

Detailed Description

A NSURLSession provider that allows clients to provide custom implementation for NSURLSession.

Method Documentation

◆ session()

+ (NSURLSession *) session

Obtains the current NSURLSession; using the +[NSURLSession sharedSession] if no custom implementation is provided.

Returns
NSURLSession object to be used for making network requests.

◆ setSession:()

+ (void) setSession: (NSURLSession *)  session

Allows library consumers to change the NSURLSession instance used to make network requests.

Parameters
sessionThe NSURLSession instance that should be used for making network requests.

The documentation for this class was generated from the following file: