Gallagher Mobile Connect SDK
Public Member Functions | List of all members
com.gallagher.security.mobileaccess.RegistrationListener Interface Reference

Public Member Functions

void onRegistrationCompleted (@Nullable MobileCredential credential, @Nullable RegistrationError error)
 
void onAuthenticationTypeSelectionRequested (SecondFactorAuthenticationTypeSelector selector)
 

Detailed Description

An interface which helps determine the results of activating a Mobile Credential

Member Function Documentation

◆ onAuthenticationTypeSelectionRequested()

void com.gallagher.security.mobileaccess.RegistrationListener.onAuthenticationTypeSelectionRequested ( SecondFactorAuthenticationTypeSelector  selector)

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

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

◆ onRegistrationCompleted()

void com.gallagher.security.mobileaccess.RegistrationListener.onRegistrationCompleted ( @Nullable MobileCredential  credential,
@Nullable RegistrationError  error 
)

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

Parameters
credentialIf non-nil instance of the registered credential when the registration completes successfully
errorIf non-nil, the registration failed, and this contains the error

The documentation for this interface was generated from the following file: