Determine if biometric hardware is present and the user has enrolled biometrics on Android P

前端 未结 8 1296
半阙折子戏
半阙折子戏 2020-12-13 05:50

I\'m asked to show certain UI elements depending on the presence of biometric hardware. For Android 23-27 I use FingerprintManager#isHardwareDetected() and

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 06:31

    There is class method available FingerprintManagerCompat.from(this).isHardwareDetected androidx.core.hardware.fingerprint package.

提交回复
热议问题