fun BiometricManager.isHardwareAvailable(): Boolean { val status = canAuthenticate(BIOMETRIC_WEAK) return status != BIOMETRIC_ERROR_NO_HARDWARE && status != BIOMETRIC_ERROR_HW_UNAVAILABLE }
Checks if the hardware requirements are met for using the [BiometricManager].