areBiometricsAvailable

abstract fun areBiometricsAvailable(context: FragmentActivity, allowDeviceCredentials: Boolean = false): BiometricAvailability

Indicates if the biometric sensor is available, and provides a reasoning if not

Return

BiometricAvailability

Parameters

context

is the calling FragmentActivity

allowDeviceCredentials

whether or not you choose to allow the use of non-biometric device credentials (PIN, Pattern) as a fallback (on Android versions greater than Q)