SBDSessionDelegate Protocol Reference

Conforms to NSObject
Declared in SBDSessionDelegate.h

– sessionTokenDidRequireWithSuccessCompletion:failCompletion: required method

App needs to fetch a new token. Pass on the new (retrieved) token to SDK via success(NEW_TOKEN) or fail() if fetch failed. In case when app decides not to refresh the session for this user, they should call success(nil).

- (void)sessionTokenDidRequireWithSuccessCompletion:(void ( ^ _Nonnull ) ( NSString *_Nullable sessionToken ))success failCompletion:(void ( ^ _Nonnull ) ( void ))fail

Parameters

success

Call this block method after retrieving a new token. In case when app decides not to refresh the session for this user, they should call this with nil.

fail

Call this block method when failed to retrieve a new token.

Availability

3.0.205

Declared In

SBDSessionDelegate.h

– sessionWasClosed required method

Called when the SDK can’t refresh the session. App should force a user to a login page to connect again.

- (void)sessionWasClosed

Availability

3.0.205

Declared In

SBDSessionDelegate.h

– sessionWasExpired

Called when session key is expired.

- (void)sessionWasExpired

Availability

3.0.205

Declared In

SBDSessionDelegate.h

– sessionWasRefreshed

Called when SDK refreshed the session key.

- (void)sessionWasRefreshed

Availability

3.0.205

Declared In

SBDSessionDelegate.h

– sessionDidHaveError:

Called when the SDK run into an error while refreshing the session key.

- (void)sessionDidHaveError:(nonnull SBDError *)error

Parameters

error

Error object

Availability

3.0.205

Declared In

SBDSessionDelegate.h