SPTSessionManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SPTSessionManager.h |
– sessionManager:didInitiateSession:
required method
This message is sent when a session has been initiated successfully.
- (void)sessionManager:(SPTSessionManager *)manager didInitiateSession:(SPTSession *)session
Parameters
manager |
The |
---|---|
session |
The initiated |
Declared In
SPTSessionManager.h
– sessionManager:didFailWithError:
required method
This message is sent when the manager failed to initiate or renew a session.
- (void)sessionManager:(SPTSessionManager *)manager didFailWithError:(NSError *)error
Parameters
manager |
The |
---|---|
error |
The |
Declared In
SPTSessionManager.h
– sessionManager:didRenewSession:
This message is sent when the manager has renewed a session.
- (void)sessionManager:(SPTSessionManager *)manager didRenewSession:(SPTSession *)session
Parameters
manager |
The |
---|---|
session |
The renewed |
Declared In
SPTSessionManager.h
– sessionManager:shouldRequestAccessTokenWithAuthorizationCode:
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
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