SLSLoginInputPresenter
open class SLSLoginInputPresenter : FlowPresentationDelegateClient, SLSLoginInputDelegate, FUIDynamicAuthenticationDelegate
SLSLoginInputDelegate
implementation to communicate between the Foundation and the UI implementation
-
The delegate which handles the UIViewController presentation.
Declaration
Swift
open var presentationDelegate: FlowPresentationDelegate! { get set }
-
Before the info screen is presented, this handler is called for customization. By default it does nothing.
Declaration
Swift
open var infoScreenConfigurationHandler: (FUIInfoViewController) -> Void { get set }
-
An option set to configure when to present the info screen.
Declaration
Swift
open var infoScreenPresentationOptions: InfoScreenPresentationOptions { get set }
-
Configuration handler for FUILoginTableViewController
Declaration
Swift
public var loginViewControllerConfigurationHandler: (FUIDynamicAuthenticationScreen) -> Void
-
Designated initializer
Declaration
Swift
public init()
-
Called when information is needed by the user
Declaration
Swift
open func slsUserIdentityDiscovery(_ sls: SLSUserIdentityDiscovery, needsInputForLogin userInputForLogin: SLSLoginInput, completionHandler: @escaping ([SLSLoginInputFieldValue]?, Error?) -> Void)
Parameters
sls
the SLSUserIdentityDiscovery instance that calls this delegate
needsInputForLogin
the SLSLoginInput struct with the requested information
completionHandler
call with the SLSLoginInputFieldValue array with the provided input values
-
Called when there are no more request for the user
Declaration
Swift
open func slsUserIdentityDiscoveryDidFinishReceivingInput(_ sls: SLSUserIdentityDiscovery)
Parameters
sls
the SLSUserIdentityDiscovery instance that calls this delegate
-
Verify function implementation
Declaration
Swift
public func verify(_ controller: FUIDynamicAuthenticationScreen, informationStrings: [String], completion: @escaping ((String?) -> Void))
Parameters
controller
UIViewController which is a
FUIDynamicAuthenticationScreen
informationStrings
The array of information strings user entered.
completion
When the information is verified, the completion block should be called. If
errorMessage
parameter of the completion block is not nil, it indicates error in the verification process, a banner message will be displayed with the error message. Otherwise, the verification is considered successful. -
The delegate method that is invoked when user tapped the cancel button.
Declaration
Swift
public func didCancel(_ controller: FUIDynamicAuthenticationScreen)
Parameters
controller
instance of
FUIDynamicAuthenticationScreen