android 6.0支持指纹识别api了,但是并没有开放区分的接口。
指纹识别 就不重复了网上例子很多,推荐google example的 https://github.com/googlesamples/android-FingerprintDialog
然而并没有如何区分的。
查看源码发现明明有接口只是被@hide了,呵呵。。我们可以用反射。
直接在google example 中测试
在识别成功时 FingerprintUiHelper类onAuthenticationSucceded方法下反射AuthenticationResult result 对象中的字段属性
代码如下:
https://github.com/Bjelijah/FingerprintDialogDistinguish-master
最后
以上就是生动樱桃最近收集整理的关于Android 6.0 指纹识别和区分的全部内容,更多相关Android内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复