SessionManager
public protocol SessionManager
Session Manager protocol
-
The HTTP environment manager used for determining the appropriate environment when communicating with the API.
Declaration
Swift
var environmentManager: HTTPEnvironmentManager
-
The HTTP client used for communication with the API.
Declaration
Swift
var httpClient: HTTPClient
-
The persistence client that can save and retrieve values from disk based on a String key
Declaration
Swift
var persistenceClient: Persistable?
-
retrieveSessionIdentifier(completion:)
Default implementationRetrieves a new session identifier from the endpoint.
Parameter
Parameter completion: Completion block that is called upon receiving the response with either the session identifier or an error.Default Implementation
Retrieves a new session identifier from the endpoint.
Parameter
Parameter completion: Completion block that is called upon receiving the response with either the session identifier or an error.Declaration
Swift
func retrieveSessionIdentifier(completion: @escaping (_ sessionId: String?, _ error: Error?) -> Void)
Parameters
completion
Completion block that is called upon receiving the response with either the session identifier or an error.
-
sessionIdHeaders
Extension methodUndocumented
Declaration
Swift
public protocol SessionManager