SFSDKAuthHelper Class Reference
Inherits from | NSObject |
---|---|
Declared in | SFSDKAuthHelper.h |
+ loginIfRequired:
Initiate a login flow if the user is not already logged in to Salesforce and if the app config’s shouldAuthenticate
flag is set to false.
+ (void)loginIfRequired:(nullable void ( ^ ) ( void ))completionBlock
Parameters
completionBlock |
Block that executes immediately if the user is already logged in, or if the app config’s |
---|
Declared In
SFSDKAuthHelper.h
+ loginIfRequired:completion:
Initiate a login flow if the user is not already logged in to Salesforce and if the app config’s shouldAuthenticate
flag is set to false.
+ (void)loginIfRequired:(UIScene *)scene completion:(nullable void ( ^ ) ( void ))completionBlock
Parameters
scene |
Scene that login is initiated for. |
---|---|
completionBlock |
Block that executes immediately if the user is already logged in, or if the app config’s |
Declared In
SFSDKAuthHelper.h
+ handleLogout:completion:
+ (void)handleLogout:(UIScene *)scene completion:(nullable void ( ^ ) ( void ))completionBlock
+ registerBlockForCurrentUserChangeNotifications:
+ (void)registerBlockForCurrentUserChangeNotifications:(void ( ^ ) ( void ))completionBlock
+ registerBlockForCurrentUserChangeNotifications:completion:
+ (void)registerBlockForCurrentUserChangeNotifications:(UIScene *)scene completion:(void ( ^ ) ( void ))completionBlock
+ registerBlockForLogoutNotifications:
+ (void)registerBlockForLogoutNotifications:(void ( ^ ) ( void ))completionBlock
+ registerBlockForLogoutNotifications:completion:
+ (void)registerBlockForLogoutNotifications:(UIScene *)scene completion:(void ( ^ ) ( void ))completionBlock
+ registerBlockForSwitchUserNotifications:
+ (void)registerBlockForSwitchUserNotifications:(void ( ^ ) ( void ))completionBlock