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
slsthe SLSUserIdentityDiscovery instance that calls this delegate
needsInputForLoginthe SLSLoginInput struct with the requested information
completionHandlercall 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
slsthe SLSUserIdentityDiscovery instance that calls this delegate
-
Verify function implementation
Declaration
Swift
public func verify(_ controller: FUIDynamicAuthenticationScreen, informationStrings: [String], completion: @escaping ((String?) -> Void))Parameters
controllerUIViewController which is a
FUIDynamicAuthenticationScreeninformationStringsThe array of information strings user entered.
completionWhen the information is verified, the completion block should be called. If
errorMessageparameter 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
controllerinstance of
FUIDynamicAuthenticationScreen