ZuoHailong / BiometricPrompt

🧜‍♀️生物识别库,目前仅支持指纹识别👆,计划实现面部识别🌝
https://blog.csdn.net/hailong0529/article/details/95406183
197 stars 45 forks source link

FingerprintImplAndrM中的callback回调 #1

Open beijing-java opened 4 years ago

beijing-java commented 4 years ago

AuthenticationCallback回调中的onAuthenticationError中, 判断用户取消操作,errMsgId==5,你这里写成errMsgId!=5, 因而无法再取消中做操作

ZuoHailong commented 4 years ago

是的,用户取消(errMsgId == 5)和其他异常(errMsgId != 5)会一起走 onAuthenticationError 方法,其他异常是在验证框上提示异常信息,而取消是移除了验证框,再通过 FingerprintCallback.onCancel 回调通知开发者进行处理。