package
Version:
v0.0.14
Opens a new window with list of versions in this module.
Published: Nov 10, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package biometrics confirms it's really them, with Face ID, Touch ID or a
fingerprint.
nimbus native plugin add biometrics
if biometrics.Available(ctx) != biometrics.None {
ok, err := biometrics.Confirm(ctx, "Show today's figures")
}
Confirm asks them to prove it's them, saying reason. It's false if they
fail or back out.
Kind is what the phone can do.
const (
None Kind = ""
Face Kind = "face"
Fingerprint Kind = "fingerprint"
)
Available says which is set up on this phone. Android can't always tell
which: it says Fingerprint for any strong biometric.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.