public abstract static class FingerprintManager.AuthenticationCallback extends Object
FingerprintManager.authenticate(CryptoObject,
CancellationSignal, int, AuthenticationCallback, Handler)
. Users of FingerprintManager.authenticate(CryptoObject, CancellationSignal,
int, AuthenticationCallback, Handler)
must provide an implementation of this for listening to
fingerprint events.Constructor and Description |
---|
AuthenticationCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onAuthenticationAcquired(int acquireInfo)
Called when a fingerprint image has been acquired, but wasn't processed yet.
|
void |
onAuthenticationError(int errorCode,
CharSequence errString)
Called when an unrecoverable error has been encountered and the operation is complete.
|
void |
onAuthenticationFailed()
Called when a fingerprint is valid but not recognized.
|
void |
onAuthenticationHelp(int helpCode,
CharSequence helpString)
Called when a recoverable error has been encountered during authentication.
|
void |
onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result)
Called when a fingerprint is recognized.
|
public void onAuthenticationError(int errorCode, CharSequence errString)
errorCode
- An integer identifying the error messageerrString
- A human-readable error string that can be shown in UIpublic void onAuthenticationHelp(int helpCode, CharSequence helpString)
helpCode
- An integer identifying the error messagehelpString
- A human-readable string that can be shown in UIpublic void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result)
result
- An object containing authentication-related datapublic void onAuthenticationFailed()
public void onAuthenticationAcquired(int acquireInfo)
acquireInfo
- one of FINGERPRINT_ACQUIRED_* constants