如何检查用户是否已使用生物识别或 PIN/密码解锁设备?
我试图确定用户是否使用传统的PIN/密码方法或使用面部解锁或指纹等生物识别技术解锁设备。 我尝试了一些答案,例如 https://stackoverflow.com/a/28694962/10357086 和 https://stackoverflow.com/a/3451916/10357086。
我仍然无法得到确切的解决方案。可以这样做吗?如果是的话,我该如何得到它? 我找到的所有答案都是关于实现生物识别身份验证或在需要时显示指纹身份验证对话框。
但我不想要这样。我想检查用户如何解锁设备?
TL;DR:我只想知道设备是否通过生物识别或 PIN/密码方法解锁,以便我可以在应用程序中根据它执行下一步操作。
I am trying to figure out if user has unlocked the device with the traditional PIN/Password method or with the biometrics like Face unlock or Fingerprint.
I tried some answers out there like https://stackoverflow.com/a/28694962/10357086 and https://stackoverflow.com/a/3451916/10357086.
I'm still unable to get the exact solution for this. Is it possible to do so? And if it is, then how would I get it?
All the answers I found are either about implementing the biometric authentication or about showing a fingerprint authentication dialog whenever needed.
But I don't want that. I want to check how the device was unlocked by the user?
TL;DR : I just want to know if the device is unlocked with the biometrics or PIN/Password method so that I can perform the next action based on it in my app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论