RegistrationDelegate

public protocol RegistrationDelegate

A delegate which helps determine the results of activating a Mobile Credential

  • Function which gets called once the credential registration is completed successfully. Otherwise, a non-nil error to indicate failure

    Declaration

    Swift

    func onRegistrationCompleted(credential: MobileCredential?, error: RegistrationError?)

    Parameters

    credential

    If non-nil instance of the registered credential when the registration completes successfully

    error

    If non-nil, the registration failed, and this contains the error

  • function which gets called if the credential being registered is a two factor credential

    Declaration

    Swift

    func onAuthenticationTypeSelectionRequested(selector: @escaping SecondFactorAuthenticationTypeSelector)

    Parameters

    selector

    a blocking lambda that needs to be called passing completed(true/false) and SecondFactorAuthenticationType to allow the registration process to complete