public class FingerprintManagerCompat
extends java.lang.Object
Build.VERSION_CODES, this class behaves as there would
be no fingerprint hardware available.| 限定符和类型 | 类和说明 |
|---|---|
static class |
FingerprintManagerCompat.AuthenticationCallback |
static class |
FingerprintManagerCompat.AuthenticationResult |
static class |
FingerprintManagerCompat.CryptoObject
A wrapper class for the crypto objects supported by FingerprintManager.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
authenticate(FingerprintManagerCompat.CryptoObject crypto,
int flags,
android.os.CancellationSignal cancel,
FingerprintManagerCompat.AuthenticationCallback callback,
android.os.Handler handler)
Request authentication of a crypto object.
|
static FingerprintManagerCompat |
from(android.content.Context context) |
boolean |
hasEnrolledFingerprints()
Determine if there is at least one fingerprint enrolled.
|
boolean |
isHardwareDetected()
Determine if fingerprint hardware is present and functional.
|
public static FingerprintManagerCompat from(android.content.Context context)
public boolean hasEnrolledFingerprints()
public boolean isHardwareDetected()
public void authenticate(FingerprintManagerCompat.CryptoObject crypto, int flags, android.os.CancellationSignal cancel, FingerprintManagerCompat.AuthenticationCallback callback, android.os.Handler handler)
FingerprintManagerCompat.AuthenticationCallback.onAuthenticationError(int, CharSequence) or
{@link AuthenticationCallback#onAuthenticationSucceeded(AuthenticationResult) is called, at
which point the object is no longer valid. The operation can be canceled by using the
provided cancel object.crypto - object associated with the call or null if none required.flags - optional flags; should be 0cancel - an object that can be used to cancel authenticationcallback - an object to receive authentication eventshandler - an optional handler for events