Library Mobile API Reference for iPhone  MicroStrategy 2019
<UsherLoginHandler> Protocol Reference

#import <MicroStrategyMobileSDK-Swift.h>

Inheritance diagram for <UsherLoginHandler>:
UsherLoginDefaultHandler

Instance Methods

(void) - loginWithUsher
 If Usher admin token is ready, call requestQR() immediately. Otherwise, show login button and call requestQR() after login button is tapped. More...
 
(void) - handleQRCode:
 
(void) - logout
 This method will be called when log out. More...
 

Method Documentation

◆ handleQRCode:()

- (void) handleQRCode: (NSString *_Nonnull)  qrCode

This method will be called when a QR code is received. If Usher admin token is ready, verify the QR code within current app. Otherwise, switch to UsherSecurity app to verify the QR code.

Parameters
qrCodeA QR code for Usher login from mobile server.

Reimplemented in UsherLoginDefaultHandler.

◆ loginWithUsher()

- (void) loginWithUsher

If Usher admin token is ready, call requestQR() immediately. Otherwise, show login button and call requestQR() after login button is tapped.

Reimplemented in UsherLoginDefaultHandler.

◆ logout()

- (void) logout

This method will be called when log out.

Reimplemented in UsherLoginDefaultHandler.