| CLASS info |
| public class BioAuthnManager extends java.lang.Object |
| Represents an entry point for the API for checking whether fingerprint authentication of FIDO BioAuthn is available. |
| Type | Name | Desc |
| int | BIO_AUTHN_SUCCESS | No error is detected. |
| int | BIO_AUTHN_ERROR_HW_UNAVAILABLE | Hardware is unavailable. |
| int | BIO_AUTHN_ERROR_NONE_ENROLLED | The user has not registered any fingerprints. |
| int | BIO_AUTHN_ERROR_NO_HARDWARE | No fingerprint authentication hardware is provided. |
| int | BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER | This version of operating system does not support fingerprint authentication. |
| Method name |
BioAuthnManager(android.content.Context context) Constructs a BioAuthnManager object, which is used to call the API for checking whether fingerprint authentication of FIDO BioAuthn is available. |
| Return type | Method name |
| int | canAuth() Checks whether fingerprint authentication is available. |
| Constant |
| public static final int BIO_AUTHN_SUCCESS |
Returned by the canAuth API; Value: 0 Fingerprint authentication is available (with registered fingerprints and available authentication hardware). |
| Constant |
| public static final int BIO_AUTHN_ERROR_HW_UNAVAILABLE |
Returned by the canAuth API; Value: 1 Hardware is unavailable. |
| Constant |
| public static final int BIO_AUTHN_ERROR_NONE_ENROLLED |
Returned by the canAuth API; Value: 11 The user has not registered any fingerprints. |
| Constant |
| public static final int BIO_AUTHN_ERROR_NO_HARDWARE |
Returned by the canAuth API; Value: 12 No fingerprint authentication hardware is provided. |
| Constant |
| public static final int BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER |
Returned by the canAuth API; Value: 1004 This version of operating system does not support fingerprint authentication. |
Parameters
| Parameter name | Parameter desc |
| context | Context of an Android app. |
| Method |
| public int canAuth() |
| Checks whether fingerprint authentication is available. |
Return
| type | desc |
| int | BIO_AUTHN_SUCCES Fingerprint authentication is available (with registered fingerprints and available authentication hardware). BIO_AUTHN_ERROR_HW_UNAVAILABLE Hardware is unavailable. BIO_AUTHN_ERROR_NONE_ENROLLED The user has not registered any fingerprints. BIO_AUTHN_ERROR_NO_HARDWARE No fingerprint authentication hardware is provided. BIO_AUTHN_ERROR_UNSUPPORTED_OS_VER This version of operating system does not support fingerprint authentication. |