biometricprompt专题

BiometricPrompt.Builder.setDeviceCredentialAllowed(boolean)方法过时了,怎么破。

Android R中已经将该API setDeviceCredentialAllowed() 标记为@Deprecated,即API=30开始不推荐使用该API。 先来看看官方API怎么说? 明确说,请使用setAllowedAuthenticators(int)代替。 怎么用,上图API已经说的很清晰,举个栗子 int authenticators = BiometricMana