Interface BiometricAuthCompletionHandler


  • @RestrictTo(LIBRARY)
    public interface BiometricAuthCompletionHandler
    Interface to listen to Biometric Authentication callbacks.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onError​(int errorCode, java.lang.String errorMessage)
      Called when the Biometric Authentication fails to complete.
      void onSuccess​(androidx.biometric.BiometricPrompt.AuthenticationResult result)
      Called when the Biometric Authentication completes successfully.
    • Method Detail

      • onSuccess

        void onSuccess​(androidx.biometric.BiometricPrompt.AuthenticationResult result)
        Called when the Biometric Authentication completes successfully.
        Parameters:
        result - the value returned
      • onError

        void onError​(int errorCode,
                     java.lang.String errorMessage)
        Called when the Biometric Authentication fails to complete.
        Parameters:
        errorCode - the failure code
        errorMessage - the message containing the failure reason