public abstract static class FingerprintManagerCompat.AuthenticationCallback extends Object
FingerprintManagerCompat.authenticate(CryptoObject,
int, CancellationSignal, AuthenticationCallback, Handler)
. Users of FingerprintManagerCompat.authenticate(CryptoObject, int, CancellationSignal,
AuthenticationCallback, Handler)
must provide an implementation of this for listening to
fingerprint events.Constructor and Description |
---|
AuthenticationCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onAuthenticationError(int errMsgId,
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 helpMsgId,
CharSequence helpString)
Called when a recoverable error has been encountered during authentication.
|
void |
onAuthenticationSucceeded(FingerprintManagerCompat.AuthenticationResult result)
Called when a fingerprint is recognized.
|
public void onAuthenticationError(int errMsgId, CharSequence errString)
errMsgId
- An integer identifying the error messageerrString
- A human-readable error string that can be shown in UIpublic void onAuthenticationHelp(int helpMsgId, CharSequence helpString)
helpMsgId
- An integer identifying the error messagehelpString
- A human-readable string that can be shown in UIpublic void onAuthenticationSucceeded(FingerprintManagerCompat.AuthenticationResult result)
result
- An object containing authentication-related datapublic void onAuthenticationFailed()