Skip to content
Advertisement

Tag: deprecated

‘canAuthenticate()’ is deprecated in android

What should I use instead of biometricManager.canAuthenticate() is deprecated. Doc says This method is deprecated. Use canAuthenticate(int) instead. How to use canAuthenticate(int) like the above manner. Answer The direct replacement for your code would look something like: According to the javadoc, the possible return values are BIOMETRIC_SUCCESS, BIOMETRIC_ERROR_HW_UNAVAILABLE, BIOMETRIC_ERROR_NONE_ENROLLED, BIOMETRIC_ERROR_NO_HARDWARE, or BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED., as before.

Advertisement