SFUserAccountManagerDelegate Protocol Reference

Conforms to NSObject
Declared in SFUserAccountManager.h

Overview

Protocol for handling callbacks from SFUserAccountManager.

– userAccountManagerIsNetworkAvailable:

Called when the account manager wants to determine if the network is available.

- (BOOL)userAccountManagerIsNetworkAvailable:(SFUserAccountManager *)userAccountManager

Parameters

userAccountManager

The instance of SFUserAccountManager making the call.

Return Value

YES if the network is available, NO otherwise

Declared In

SFUserAccountManager.h

– userAccountManager:error:info:

The instance of SFUserAccountManager

- (BOOL)userAccountManager:(SFUserAccountManager *)userAccountManager error:(NSError *)error info:(SFOAuthInfo *)info

Parameters

userAccountManager

The instance of SFUserAccountManager

error

The Error that occurred

info

The info for the auth request

Return Value

YES if the error has been handled by the delegate. SDK will attempt to handle the error if the result is NO.

Declared In

SFUserAccountManager.h

– userAccountManager:willSwitchFromUser:toUser:

Called before the user account manager switches from one user to another.

- (void)userAccountManager:(SFUserAccountManager *)userAccountManager willSwitchFromUser:(SFUserAccount *)currentUserAccount toUser:(nullable SFUserAccount *)anotherUserAccount

Parameters

userAccountManager

The SFUserAccountManager instance making the switch.

currentUserAccount

The user being switched away from.

anotherUserAccount

The user to be switched to. nil if the user context is being switched back to no user.

Declared In

SFUserAccountManager.h

– userAccountManager:didSwitchFromUser:toUser:

Called after the user account manager switches from one user to another.

- (void)userAccountManager:(SFUserAccountManager *)userAccountManager didSwitchFromUser:(SFUserAccount *)previousUserAccount toUser:(nullable SFUserAccount *)currentUserAccount

Parameters

userAccountManager

The SFUserAccountManager instance making the switch.

previousUserAccount

The user that was switched away from.

currentUserAccount

The user that was switched to. nil if the user context is being switched back to no user.

Declared In

SFUserAccountManager.h