Add a constant to allow system-provided fingerprint dialogs

This adds FINGERPRINT_ERROR_USER_CANCELED to the list of possible errors
returned by FingerprintManager.authenticate().

Fixes b/64540509

Test: documentation builds

Change-Id: I66b46d385ab10eb0bc8e982c06e7a60570a79165
This commit is contained in:
Jim Miller
2017-08-23 18:00:03 -07:00
committed by Kevin Chyn
parent 45fb339d83
commit a8bc97cd70
4 changed files with 10 additions and 0 deletions

View File

@@ -127,6 +127,13 @@ public class FingerprintManager {
*/
public static final int FINGERPRINT_ERROR_LOCKOUT_PERMANENT = 9;
/**
* The user canceled the operation. Upon receiving this, applications should use alternate
* authentication (e.g. a password). The application should also provide the means to return
* to fingerprint authentication, such as a "use fingerprint" button.
*/
public static final int FINGERPRINT_ERROR_USER_CANCELED = 10;
/**
* @hide
*/