如何使BiometricPrompt不可取消? [英] How to make BiometricPrompt non-cancelable?
本文介绍了如何使BiometricPrompt不可取消?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在应用程序中使用 BiometricPrompt
.当调用 authenticate()
方法时,它可以很好地工作并显示对话框.但是,当我在对话框外部单击时,此对话框将关闭.怎么预防呢?如何使BiometricPrompt的对话框不可取消?这里没有像 biometricPrompt.setCancelable(false)
那样的方法.
I am using BiometricPrompt
in my application. It works well and shows the dialog when call the authenticate()
method. But this dialog gets closing when I click outside the dialog. How to prevent it? How to make BiometricPrompt's dialog non-cancelable? Here is no method like biometricPrompt.setCancelable(false)
.
推荐答案
您必须使用版本1.0.0-beta01 或更高版本.
You have to use the version 1.0.0-beta01 or later.
现在是默认行为:
外部触摸不再取消身份验证.后退按钮仍会取消身份验证.
您可以看到更改日志:
更改了行为,不允许提示外的触摸事件取消
BiometricPrompt
.
您还可以查看 rewiew报告.
没有新的API.
这篇关于如何使BiometricPrompt不可取消?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文