Interface DeviceAuthenticationCallback


  • public interface DeviceAuthenticationCallback
    Callback to update the status of the user authentication (for example, during a payment process).
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onError​(int fpErrorCode)
      Only applicable for biometric/bio-fingerprint authentication.
      void onFailed()
      User authentication failed.
      void onHelp​(int fpCode, CharSequence detail)
      Only applicable for biometric/bio-fingerprint authentication.
      void onSuccess()
      End user is authenticated, the process will proceed to the next step.
    • Method Detail

      • onSuccess

        void onSuccess()
        End user is authenticated, the process will proceed to the next step.
      • onFailed

        void onFailed()
        User authentication failed.

        Application should handle accordingly. For example, if biometrics/bio-fingerprint authentication fails, the application is suggested to use device keyguard as a fallback to the end user.