Documentation
¶
Overview ¶
Package fingerprint provides Go bindings for android.hardware.fingerprint.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Manager
- type ManagerAuthenticationCallback
- func (m *ManagerAuthenticationCallback) OnAuthenticationError(arg0 int32, arg1 string) error
- func (m *ManagerAuthenticationCallback) OnAuthenticationFailed() error
- func (m *ManagerAuthenticationCallback) OnAuthenticationHelp(arg0 int32, arg1 string) error
- func (m *ManagerAuthenticationCallback) OnAuthenticationSucceeded(arg0 *jni.Object) error
- func (m *ManagerAuthenticationCallback) ToString() (string, error)
- type ManagerAuthenticationResult
- type ManagerCryptoObject
Constants ¶
const ( FingerprintAcquiredGood = consts.FingerprintAcquiredGood FingerprintAcquiredImagerDirty = consts.FingerprintAcquiredImagerDirty FingerprintAcquiredInsufficient = consts.FingerprintAcquiredInsufficient FingerprintAcquiredPartial = consts.FingerprintAcquiredPartial FingerprintAcquiredTooFast = consts.FingerprintAcquiredTooFast FingerprintAcquiredTooSlow = consts.FingerprintAcquiredTooSlow FingerprintErrorCanceled = consts.FingerprintErrorCanceled FingerprintErrorHwNotPresent = consts.FingerprintErrorHwNotPresent FingerprintErrorLockout = consts.FingerprintErrorLockout FingerprintErrorLockoutPermanent = consts.FingerprintErrorLockoutPermanent FingerprintErrorNoFingerprints = consts.FingerprintErrorNoFingerprints FingerprintErrorNoSpace = consts.FingerprintErrorNoSpace FingerprintErrorTimeout = consts.FingerprintErrorTimeout FingerprintErrorUnableToProcess = consts.FingerprintErrorUnableToProcess FingerprintErrorUserCanceled = consts.FingerprintErrorUserCanceled FingerprintErrorVendor = consts.FingerprintErrorVendor )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
Manager wraps android.hardware.fingerprint.FingerprintManager.
func NewManager ¶
NewManager obtains android.hardware.fingerprint.FingerprintManager from the Android system service manager.
func (*Manager) Close ¶
func (m *Manager) Close()
Close releases the global reference to the underlying Java object. After Close, the Manager must not be used.
func (*Manager) HasEnrolledFingerprints ¶
HasEnrolledFingerprints calls android.hardware.fingerprint.FingerprintManager.hasEnrolledFingerprints.
func (*Manager) IsHardwareDetected ¶
IsHardwareDetected calls android.hardware.fingerprint.FingerprintManager.isHardwareDetected.
type ManagerAuthenticationCallback ¶
ManagerAuthenticationCallback wraps android.hardware.fingerprint.FingerprintManager$AuthenticationCallback.
func (*ManagerAuthenticationCallback) OnAuthenticationError ¶
func (m *ManagerAuthenticationCallback) OnAuthenticationError(arg0 int32, arg1 string) error
OnAuthenticationError calls android.hardware.fingerprint.FingerprintManager$AuthenticationCallback.onAuthenticationError.
func (*ManagerAuthenticationCallback) OnAuthenticationFailed ¶
func (m *ManagerAuthenticationCallback) OnAuthenticationFailed() error
OnAuthenticationFailed calls android.hardware.fingerprint.FingerprintManager$AuthenticationCallback.onAuthenticationFailed.
func (*ManagerAuthenticationCallback) OnAuthenticationHelp ¶
func (m *ManagerAuthenticationCallback) OnAuthenticationHelp(arg0 int32, arg1 string) error
OnAuthenticationHelp calls android.hardware.fingerprint.FingerprintManager$AuthenticationCallback.onAuthenticationHelp.
func (*ManagerAuthenticationCallback) OnAuthenticationSucceeded ¶
func (m *ManagerAuthenticationCallback) OnAuthenticationSucceeded(arg0 *jni.Object) error
OnAuthenticationSucceeded calls android.hardware.fingerprint.FingerprintManager$AuthenticationCallback.onAuthenticationSucceeded.
func (*ManagerAuthenticationCallback) ToString ¶ added in v0.0.8
func (m *ManagerAuthenticationCallback) ToString() (string, error)
ToString calls android.hardware.fingerprint.FingerprintManager$AuthenticationCallback.toString.
type ManagerAuthenticationResult ¶
ManagerAuthenticationResult wraps android.hardware.fingerprint.FingerprintManager$AuthenticationResult.
func (*ManagerAuthenticationResult) GetCryptoObject ¶
func (m *ManagerAuthenticationResult) GetCryptoObject() (*jni.Object, error)
GetCryptoObject calls android.hardware.fingerprint.FingerprintManager$AuthenticationResult.getCryptoObject.
func (*ManagerAuthenticationResult) ToString ¶ added in v0.0.8
func (m *ManagerAuthenticationResult) ToString() (string, error)
ToString calls android.hardware.fingerprint.FingerprintManager$AuthenticationResult.toString.
type ManagerCryptoObject ¶
ManagerCryptoObject wraps android.hardware.fingerprint.FingerprintManager$CryptoObject.
func (*ManagerCryptoObject) GetCipher ¶
func (m *ManagerCryptoObject) GetCipher() (*jni.Object, error)
GetCipher calls android.hardware.fingerprint.FingerprintManager$CryptoObject.getCipher.
func (*ManagerCryptoObject) GetMac ¶
func (m *ManagerCryptoObject) GetMac() (*jni.Object, error)
GetMac calls android.hardware.fingerprint.FingerprintManager$CryptoObject.getMac.
func (*ManagerCryptoObject) GetSignature ¶
func (m *ManagerCryptoObject) GetSignature() (*jni.Object, error)
GetSignature calls android.hardware.fingerprint.FingerprintManager$CryptoObject.getSignature.
func (*ManagerCryptoObject) ToString ¶ added in v0.0.8
func (m *ManagerCryptoObject) ToString() (string, error)
ToString calls android.hardware.fingerprint.FingerprintManager$CryptoObject.toString.