SPTSessionManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SPTSessionManager.h |
– sessionManager:didInitiateSession:NS_SWIFT_NAME:
required method
This message is sent when a session has been initiated successfully.
- (void)sessionManager:(SPTSessionManager *)manager didInitiateSession:(SPTSession *)session NS_SWIFT_NAME
Parameters
manager |
The |
---|---|
session |
The initiated |
Declared In
SPTSessionManager.h
– sessionManager:didFailWithError:NS_SWIFT_NAME:
required method
This message is sent when the manager failed to initiate or renew a session.
- (void)sessionManager:(SPTSessionManager *)manager didFailWithError:(NSError *)error NS_SWIFT_NAME
Parameters
manager |
The |
---|---|
error |
The |
Declared In
SPTSessionManager.h
– sessionManager:didRenewSession:NS_SWIFT_NAME:
This message is sent when the manager has renewed a session.
- (void)sessionManager:(SPTSessionManager *)manager didRenewSession:(SPTSession *)session NS_SWIFT_NAME
Parameters
manager |
The |
---|---|
session |
The renewed |
Declared In
SPTSessionManager.h
– sessionManager:shouldRequestAccessTokenWithAuthorizationCode:NS_SWIFT_NAME:
Sent when the SPTSessionManager
has obtained an authorization code,
and is about to swap it for an access token. If you wish to handle this
yourself, return NO
and use the provided authorization code.
- (BOOL)sessionManager:(SPTSessionManager *)manager shouldRequestAccessTokenWithAuthorizationCode:(SPTAuthorizationCode)code NS_SWIFT_NAME
Parameters
manager |
The |
---|---|
code |
An OAuth authorization code. |
Return Value
NO
to request the access token yourself; YES
to let SPTSessionManager
handle it.
Declared In
SPTSessionManager.h