Class ShadowBiometricManager

    • Field Detail

      • biometricServiceConnected

        protected boolean biometricServiceConnected
    • Constructor Detail

      • ShadowBiometricManager

        public ShadowBiometricManager()
    • Method Detail

      • setCanAuthenticate

        public void setCanAuthenticate​(boolean flag)
        Sets the value true to allow canAuthenticate() return BIOMETRIC_SUCCESS If sets the value to false, result will depend on BiometricManager#hasBiometrics(Context context)
        Parameters:
        flag - to set can authenticate or not
      • canAuthenticate

        @Implementation(minSdk=30)
        protected int canAuthenticate​(int userId,
                                      int authenticators)