NetworkManagerBuilder
@interface NetworkManagerBuilder : NSObject
NetworkManagerBuilder
is a configuration object used to optionally set properties on the VONetworkManager
during initialization.
-
The session configuration used by the
VONetworkManager
. If not supplied, the default configuration from AFNetworking will be used.Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSURLSessionConfiguration *sessionConfiguration;
Swift
var sessionConfiguration: URLSessionConfiguration? { get set }
-
The base URL to reach the Vouchr Server. This URL determines whether or not authentication is required for requests.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSURL *baseUrl;
Swift
var baseUrl: URL? { get set }
-
Vouchr supplied string to uniquely identify each client of the SDK. This string is included on each network request that involves the baseUrl.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *sdkIdString;
Swift
var sdkIdString: String? { get set }