【问题标题】:Error code 13 on Biometric dialog closure生物识别对话框关闭上的错误代码 13
【发布时间】:2019-09-30 02:55:14
【问题描述】:

我正在我的应用程序中实现 Android 的生物识别提示,当我通过按取消按钮关闭提示时,我得到 onAuthenticationError 回调,errorCode 为 13。但是,我没有看到任何值为 13 的错误代码文档 (https://developer.android.com/reference/android/hardware/biometrics/BiometricPrompt.html)。有人可以帮忙吗?

【问题讨论】:

    标签: android


    【解决方案1】:

    啊,浏览了Android Biometric源码后,发现了这个,BiometricConstants.ERROR_NEGATIVE_BUTTON。它应该被记录在类文档中。

    【讨论】:

      【解决方案2】:

      您可能正在查看 android.hardware.biometric 文档,而不是 androidx.biometric documentation。 androidx.biometric 上的ERROR_NEGATIVE_BUTTON API 与框架版本中的OnClickListener 略有不同。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2023-02-07
        • 1970-01-01
        • 2016-06-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多