| Nick Anthony | c8b16d4 | 2019-04-02 10:44:15 -0400 | [diff] [blame] | 1 | // Signature format: 3.0 |
| 2 | package androidx.biometric { |
| 3 | |
| 4 | public class BiometricPrompt { |
| 5 | ctor public BiometricPrompt(androidx.fragment.app.FragmentActivity, java.util.concurrent.Executor, androidx.biometric.BiometricPrompt.AuthenticationCallback); |
| 6 | method public void authenticate(androidx.biometric.BiometricPrompt.PromptInfo, androidx.biometric.BiometricPrompt.CryptoObject); |
| 7 | method public void authenticate(androidx.biometric.BiometricPrompt.PromptInfo); |
| 8 | method public void cancelAuthentication(); |
| 9 | field public static final int ERROR_CANCELED = 5; // 0x5 |
| 10 | field public static final int ERROR_HW_NOT_PRESENT = 12; // 0xc |
| 11 | field public static final int ERROR_HW_UNAVAILABLE = 1; // 0x1 |
| 12 | field public static final int ERROR_LOCKOUT = 7; // 0x7 |
| 13 | field public static final int ERROR_LOCKOUT_PERMANENT = 9; // 0x9 |
| 14 | field public static final int ERROR_NEGATIVE_BUTTON = 13; // 0xd |
| 15 | field public static final int ERROR_NO_BIOMETRICS = 11; // 0xb |
| Nick Anthony | b576ec4 | 2019-04-04 16:43:34 -0400 | [diff] [blame^] | 16 | field public static final int ERROR_NO_DEVICE_CREDENTIAL = 14; // 0xe |
| Nick Anthony | c8b16d4 | 2019-04-02 10:44:15 -0400 | [diff] [blame] | 17 | field public static final int ERROR_NO_SPACE = 4; // 0x4 |
| 18 | field public static final int ERROR_TIMEOUT = 3; // 0x3 |
| 19 | field public static final int ERROR_UNABLE_TO_PROCESS = 2; // 0x2 |
| 20 | field public static final int ERROR_USER_CANCELED = 10; // 0xa |
| 21 | field public static final int ERROR_VENDOR = 8; // 0x8 |
| 22 | } |
| 23 | |
| 24 | public abstract static class BiometricPrompt.AuthenticationCallback { |
| 25 | ctor public BiometricPrompt.AuthenticationCallback(); |
| 26 | method public void onAuthenticationError(int, CharSequence); |
| 27 | method public void onAuthenticationFailed(); |
| 28 | method public void onAuthenticationSucceeded(androidx.biometric.BiometricPrompt.AuthenticationResult); |
| 29 | } |
| 30 | |
| 31 | public static class BiometricPrompt.AuthenticationResult { |
| 32 | method public androidx.biometric.BiometricPrompt.CryptoObject? getCryptoObject(); |
| 33 | } |
| 34 | |
| 35 | public static class BiometricPrompt.CryptoObject { |
| 36 | ctor public BiometricPrompt.CryptoObject(java.security.Signature); |
| 37 | ctor public BiometricPrompt.CryptoObject(javax.crypto.Cipher); |
| 38 | ctor public BiometricPrompt.CryptoObject(javax.crypto.Mac); |
| 39 | method public javax.crypto.Cipher? getCipher(); |
| 40 | method public javax.crypto.Mac? getMac(); |
| 41 | method public java.security.Signature? getSignature(); |
| 42 | } |
| 43 | |
| 44 | public static class BiometricPrompt.PromptInfo { |
| 45 | method public CharSequence? getDescription(); |
| 46 | method public CharSequence getNegativeButtonText(); |
| 47 | method public CharSequence? getSubtitle(); |
| 48 | method public CharSequence getTitle(); |
| Nick Anthony | b576ec4 | 2019-04-04 16:43:34 -0400 | [diff] [blame^] | 49 | method public boolean isConfirmationRequired(); |
| 50 | method public boolean isDeviceCredentialAllowed(); |
| Nick Anthony | c8b16d4 | 2019-04-02 10:44:15 -0400 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | public static class BiometricPrompt.PromptInfo.Builder { |
| 54 | ctor public BiometricPrompt.PromptInfo.Builder(); |
| 55 | method public androidx.biometric.BiometricPrompt.PromptInfo build(); |
| Nick Anthony | b576ec4 | 2019-04-04 16:43:34 -0400 | [diff] [blame^] | 56 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setConfirmationRequired(boolean); |
| Nick Anthony | c8b16d4 | 2019-04-02 10:44:15 -0400 | [diff] [blame] | 57 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setDescription(CharSequence?); |
| Nick Anthony | b576ec4 | 2019-04-04 16:43:34 -0400 | [diff] [blame^] | 58 | method @RequiresApi(29) public androidx.biometric.BiometricPrompt.PromptInfo.Builder setDeviceCredentialAllowed(boolean); |
| Nick Anthony | c8b16d4 | 2019-04-02 10:44:15 -0400 | [diff] [blame] | 59 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setNegativeButtonText(CharSequence); |
| 60 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setSubtitle(CharSequence?); |
| 61 | method public androidx.biometric.BiometricPrompt.PromptInfo.Builder setTitle(CharSequence); |
| 62 | } |
| 63 | |
| 64 | } |
| 65 | |