SPTSessionManagerDelegate Protocol Reference

Conforms to NSObject
Declared in SPTSessionManager.h

Overview

The SPTSessionManagerDelegate to use for monitoring state changes of a SPTSessionManager

– 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 SPTSessionManager that initiated the session.

session

The initiated SPTSession object.

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 SPTSessionManager instance.

error

The NSError that occured.

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 SPTSessionManager instance.

session

The renewed SPTSession object.

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 SPTSessionManager instance.

code

An OAuth authorization code.

Return Value

NO to request the access token yourself; YES to let SPTSessionManager handle it.

Declared In

SPTSessionManager.h