Class BiometricsDialogManager


  • public class BiometricsDialogManager
    extends java.lang.Object
    Manager class for displaying of authentication fingerprint user dialog
    • Method Detail

      • showBiometricsAlreadyRegisteredDialog

        public void showBiometricsAlreadyRegisteredDialog​(android.app.Activity activity,
                                                          android.content.DialogInterface.OnClickListener okListener)
        Show Fingerprint is already registered dialog
        Parameters:
        activity - view where the alert dialog is shown
        okListener - DialogInterface.OnClickListener when on is clicked
      • showNextTimeUsingBiometricsDialog

        public void showNextTimeUsingBiometricsDialog​(android.app.Activity activity)
        Show Login via Fingerprint, would you like to login via fingerprint dialog
        Parameters:
        activity - view where the alert dialog is shown
      • showDisableBiometricsDialog

        public static void showDisableBiometricsDialog​(android.app.Activity activity)
        Show Disable Fingerprint Dialog. If yes, it will clear biometric data on Shared preferences
        Parameters:
        activity - view where the alert dialog is shown
      • showEnableBiometricsDialog

        public static void showEnableBiometricsDialog​(android.app.Activity activity)
        Show enable fingerprint authentication dialog.
        Parameters:
        activity - view where the alert dialog is shown
      • show

        public static void show​(androidx.appcompat.app.AppCompatActivity activity,
                                boolean forRegistration,
                                java.lang.String title,
                                java.lang.String subtitle,
                                java.lang.String description,
                                java.lang.String negativeButtonText,
                                AuthenticationCallback authenticationCallback,
                                androidx.biometric.BiometricPrompt.CryptoObject cryptoObject)
        Shows the biometric prompt
        Parameters:
        activity - page where the prompt is attached
        forRegistration - determine if biometric is intended for registration
        title - title shown on the dialog
        subtitle - subtitle shown on the dialog
        description - description shown on the dialog
        negativeButtonText - text used for negative button of the dialog
        authenticationCallback - callback to receive authentication events
        cryptoObject - The crypto object associated with the authentication