SLSLoginInputPresenter

open class SLSLoginInputPresenter : FlowPresentationDelegateClient, SLSLoginInputDelegate, FUIDynamicAuthenticationDelegate

SLSLoginInputDelegate implementation to communicate between the Foundation and the UI implementation

  • 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