Callbacks¶
|
|
|
Details¶
- FPrint.EnrollProgress(device, completed_stages, print_, user_data, error)¶
- Parameters:
device (
FPrint.Device
) – aFPrint.Device
completed_stages (
int
) – Number of completed stagesprint (
FPrint.Print
orNone
) – The last scanned printerror (
GLib.Error
orNone
) –GLib.Error
orNone
The passed error is guaranteed to be of type %FP_DEVICE_RETRY if set.
- FPrint.MatchCb(device, match, print_, user_data, error)¶
- Parameters:
device (
FPrint.Device
) – aFPrint.Device
match (
FPrint.Print
orNone
) – The matching print if any matched printprint (
FPrint.Print
orNone
) – The newly scanned printerror (
GLib.Error
orNone
) –GLib.Error
orNone
Report the result of a match (identify or verify) operation.
If match is non-
None
, then it is set to the matchingFPrint.Print
as passed to the match operation. In this case error will always beNone
.If error is not
None
then its domain is guaranteed to be %FP_DEVICE_RETRY. All other error conditions will not be reported using this callback. If such an error occurs before a match/no-match decision can be made, then this callback will not be called. Should an error happen afterwards, then you will get a match report through this callback and an error when the operation finishes.If match and error are
None
, then a finger was presented but it did not match any known print.print represents the newly scanned print. The driver may or may not provide this information. Image based devices will provide it and it allows access to the raw data.
This callback exists because it makes sense for drivers to wait e.g. on finger removal before completing the match operation. However, the success/failure can often be reported at an earlier time, and there is no need to make the user wait.