Curtis Belmonte | 3269f7e | 2019-10-22 11:14:28 -0700 | [diff] [blame] | 1 | // Signature format: 3.0 |
| 2 | package androidx.biometric { |
| 3 | |
Curtis Belmonte | 3269f7e | 2019-10-22 11:14:28 -0700 | [diff] [blame] | 4 | public class BiometricManager { |
| 5 | method public int canAuthenticate(); |
| 6 | method public static androidx.biometric.BiometricManager from(android.content.Context); |
| 7 | field public static final int BIOMETRIC_ERROR_HW_UNAVAILABLE = 1; // 0x1 |
| 8 | field public static final int BIOMETRIC_ERROR_NONE_ENROLLED = 11; // 0xb |
| 9 | field public static final int BIOMETRIC_ERROR_NO_HARDWARE = 12; // 0xc |
| 10 | field public static final int BIOMETRIC_SUCCESS = 0; // 0x0 |
| 11 | } |
| 12 | |
Jeff Gaston | 892d135 | 2019-11-07 18:37:22 -0500 | [diff] [blame] | 13 | public class BiometricPrompt { |
Curtis Belmonte | 3269f7e | 2019-10-22 11:14:28 -0700 | [diff] [blame] | 14 | ctor public BiometricPrompt(androidx.fragment.app.FragmentActivity, java.util.concurrent.Executor, androidx.biometric.BiometricPrompt.AuthenticationCallback); |
| 15 | ctor public BiometricPrompt(androidx.fragment.app.Fragment, java.util.concurrent.Executor, androidx.biometric.BiometricPrompt.AuthenticationCallback); |
| 16 | method public void authenticate(androidx.biometric.BiometricPrompt.PromptInfo, androidx.biometric.BiometricPrompt.CryptoObject); |
| 17 | method public void authenticate(androidx.biometric.BiometricPrompt.PromptInfo); |
| 18 | method public void cancelAuthentication(); |
Jeff Gaston | 892d135 | 2019-11-07 18:37:22 -0500 | [diff] [blame] | 19 | field public static final int ERROR_CANCELED = 5; // 0x5 |
| 20 | field public static final int ERROR_HW_NOT_PRESENT = 12; // 0xc |
| 21 | field public static final int ERROR_HW_UNAVAILABLE = 1; // 0x1 |
| 22 | field public static final int ERROR_LOCKOUT = 7; // 0x7 |
| 23 | field public static final int ERROR_LOCKOUT_PERMANENT = 9; // 0x9 |
| 24 | field public static final int ERROR_NEGATIVE_BUTTON = 13; // 0xd |
| 25 | field public static final int ERROR_NO_BIOMETRICS = 11; // 0xb |
| 26 | field public static final int ERROR_NO_DEVICE_CREDENTIAL = 14; // 0xe |
| 27 | field public static final int ERROR_NO_SPACE = 4; // 0x4 |
| 28 | field public static final int ERROR_TIMEOUT = 3; // 0x3 |
| 29 | field public static final int ERROR_UNABLE_TO_PROCESS = 2; // 0x2 |
| 30 | field public static final int ERROR_USER_CANCELED = 10; // 0xa |
| 31 | field public static final int ERROR_VENDOR = 8; // 0x8 |
Curtis Belmonte | 3269f7e | 2019-10-22 11:14:28 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | public abstract static class BiometricPrompt.AuthenticationCallback { |
| 35 | ctor public BiometricPrompt.AuthenticationCallback(); |
| 36 | method public void onAuthenticationError(int, CharSequence); |
| 37 | method public void onAuthenticationFailed(); |
| 38 | method public void onAuthenticationSucceeded(androidx.biometric.BiometricPrompt.AuthenticationResult); |
| 39 | } |
| 40 | |
| 41 | public static class BiometricPrompt.AuthenticationResult { |
| 42 | method public androidx.biometric.BiometricPrompt.CryptoObject? getCryptoObject(); |
| 43 | } |
| 44 | |
| 45 | public static class BiometricPrompt.CryptoObject { |
| 46 | ctor public BiometricPrompt.CryptoObject(java.security.Signature); |
| 47 | ctor public BiometricPrompt.CryptoObject(javax.crypto.Cipher); |
| 48 | ctor public BiometricPrompt.CryptoObject(javax.crypto.Mac); |
| 49 | method public javax.crypto.Cipher? getCipher(); |
| 50 | method public javax.crypto.Mac? getMac(); |
| 51 | method public java.security.Signature? getSignature(); |
| 52 | } |
| 53 | |
| 54 | public static class BiometricPrompt.PromptInfo { |
| 55 | method public CharSequence? getDescription(); |
| 56 | method public CharSequence getNegativeButtonText(); |
| 57 | method public CharSequence? getSubtitle(); |
| 58 | method public CharSequence getTitle(); |
| 59 | method public boolean isConfirmationRequired(); |
| 60 | method public boolean isDeviceCredentialAllowed(); |
| 61 | } |
| 62 | |
| 63 | public static class BiometricPrompt.PromptInfo.Builder { |
| 64 | ctor public BiometricPrompt.PromptInfo.Builder(); |
| 65 | method public androidx.biometric.BiometricPrompt.PromptInfo build(); |
| 66 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setConfirmationRequired(boolean); |
| 67 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setDescription(CharSequence?); |
| 68 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setDeviceCredentialAllowed(boolean); |
| 69 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setNegativeButtonText(CharSequence); |
| 70 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setSubtitle(CharSequence?); |
| 71 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setTitle(CharSequence); |
| 72 | } |
| 73 | |
Curtis Belmonte | 3269f7e | 2019-10-22 11:14:28 -0700 | [diff] [blame] | 74 | } |
| 75 | |