SPTSessionManagerDelegate Protocol Reference

Conforms to NSObject
Declared in SPTSessionManager.h

Overview

The SPTSessionManagerDelegate to use for monitoring state changes of a SPTSessionManager

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

session

The initiated SPTSession object.

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

error

The NSError that occured.

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

session

The renewed SPTSession object.

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 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