Most visited

Recently visited

FingerprintManagerCompat.AuthenticationCallback

public static abstract class FingerprintManagerCompat.AuthenticationCallback
extends Object

java.lang.Object
   ↳ android.support.v4.hardware.fingerprint.FingerprintManagerCompat.AuthenticationCallback


回调结构提供给authenticate(CryptoObject, int, CancellationSignal, AuthenticationCallback, Handler) authenticate(CryptoObject, int, CancellationSignal, AuthenticationCallback, Handler)用户必须提供这个实现来收听指纹事件。

Summary

Public constructors

FingerprintManagerCompat.AuthenticationCallback()

Public methods

void onAuthenticationError(int errMsgId, CharSequence errString)

当遇到不可恢复的错误并且操作完成时调用。

void onAuthenticationFailed()

当指纹有效但未被识别时调用。

void onAuthenticationHelp(int helpMsgId, CharSequence helpString)

在认证期间遇到可恢复的错误时调用。

void onAuthenticationSucceeded(FingerprintManagerCompat.AuthenticationResult result)

在识别指纹时调用。

Inherited methods

From class java.lang.Object

Public constructors

FingerprintManagerCompat.AuthenticationCallback

FingerprintManagerCompat.AuthenticationCallback ()

Public methods

onAuthenticationError

void onAuthenticationError (int errMsgId, 
                CharSequence errString)

当遇到不可恢复的错误并且操作完成时调用。 此对象不会进一步回调。

Parameters
errMsgId int: An integer identifying the error message
errString CharSequence: A human-readable error string that can be shown in UI

onAuthenticationFailed

void onAuthenticationFailed ()

当指纹有效但未被识别时调用。

onAuthenticationHelp

void onAuthenticationHelp (int helpMsgId, 
                CharSequence helpString)

在认证期间遇到可恢复的错误时调用。 提供帮助字符串是为了向用户提供有关出错的指导,例如“传感器脏,请清洁它。”

Parameters
helpMsgId int: An integer identifying the error message
helpString CharSequence: A human-readable string that can be shown in UI

onAuthenticationSucceeded

void onAuthenticationSucceeded (FingerprintManagerCompat.AuthenticationResult result)

在识别指纹时调用。

Parameters
result FingerprintManagerCompat.AuthenticationResult: An object containing authentication-related data

Hooray!