Package: android.hardware.biometrics.fingerprint@2.1

IBiometricsFingerprintClientCallback

interface IBiometricsFingerprintClientCallback

Methods

onEnrollResult

oneway onEnrollResult (uint64_t deviceId, uint32_t fingerId, uint32_t groupId, uint32_t remaining)

Sent when one enrollment step is complete.

Details
RPC mode
oneway
Parameters
deviceId
the instance of this fingerprint device
fingerId
the fingerprint templetate being enrolled
groupId
the groupid for the template being enrolled
remaining
the number of remaining steps before enrolllment is complete

onAcquired

oneway onAcquired (uint64_t deviceId, FingerprintAcquiredInfo acquiredInfo, int32_t vendorCode)

Sent when a fingerprint image is acquired by the sensor

Details
RPC mode
oneway
Parameters
deviceId
the instance of this fingerprint device
acquiredInfo
a message about the quality of the acquired image
vendorCode
a vendor-specific message about the quality of the image.Only valid when acquiredInfo == ACQUIRED_VENDOR

onAuthenticated

oneway onAuthenticated (uint64_t deviceId, uint32_t fingerId, uint32_t groupId, vec<uint8_t> token)

Sent when a fingerprint is authenticated

Details
RPC mode
oneway
Parameters
deviceId
the instance of this fingerprint device
fingerId
the fingerprint templetate that was authenticated
groupId
the groupid for the template that was authenticated
token
the hardware authentication token to pass to Keystore.addAuthToken()

onError

oneway onError (uint64_t deviceId, FingerprintError error, int32_t vendorCode)

Sent when a fingerprint error occurs

Details
RPC mode
oneway
Parameters
deviceId
the instance of this fingerprint device
error
a message about the error that occurred
vendorCode
a vendor-speicifc error message.Only valid when error == ERROR_VENDOR

onRemoved

oneway onRemoved (uint64_t deviceId, uint32_t fingerId, uint32_t groupId, uint32_t remaining)

Sent when one template is removed

Details
RPC mode
oneway
Parameters
deviceId
the instance of this fingerprint device
fingerId
the fingerprint templetate being removed
groupId
the groupid for the template being removed
remaining
the number of remaining templates that will be removed.

onEnumerate

oneway onEnumerate (uint64_t deviceId, uint32_t fingerId, uint32_t groupId, uint32_t remaining)

Sent when one fingerprint template is enumerated

Details
RPC mode
oneway
Parameters
deviceId
the instance of this fingerprint device
fingerId
the fingerprint for this templetate
groupId
the groupid for this template
remaining
the number of remaining steps before enumeration is complete