Reputation: 548
I'm trying to create an authentification using the FingerprintScanner library in codenameone.
But it lacks documentation , only one example is provided :
scanFingerprint.addActionListener(e -> {
Fingerprint.scanFingerprint(value -> {
hi.add("Scan successfull!");
hi.revalidate();
}, (sender, err, errorCode, errorMessage) -> {
hi.add("Scan Failed!");
hi.revalidate();
});
});
how do i get the value of the fingerprint?
I have tried printing the value.toString(), it's empty and it's of type Object .
Upvotes: 3
Views: 57
Reputation: 52760
There is no access to the fingerprint itself as that isn't available on iOS. In iOS the fingerprint will authenticate if this is one of the owners of the device which should in theory work for Face ID as well.
The assumption is that a user with access to the device is using it. On Android there is far more information available but we didn't expose it to keep the code portable.
Upvotes: 1