Versions in this module Expand all Collapse all v0 v0.0.9 Apr 6, 2026 v0.0.8 Apr 3, 2026 v0.0.7 Mar 28, 2026 v0.0.6 Mar 22, 2026 v0.0.5 Mar 22, 2026 Changes in this version + const DescriptorIFace + const DescriptorISession + const DescriptorISessionCallback + const MethodIFaceCreateSession + const MethodIFaceGetSensorProps + const MethodISessionAuthenticate + const MethodISessionAuthenticateWithContext + const MethodISessionCallbackOnAuthenticationFailed + const MethodISessionCallbackOnAuthenticationFrame + const MethodISessionCallbackOnAuthenticationSucceeded + const MethodISessionCallbackOnAuthenticatorIdInvalidated + const MethodISessionCallbackOnAuthenticatorIdRetrieved + const MethodISessionCallbackOnChallengeGenerated + const MethodISessionCallbackOnChallengeRevoked + const MethodISessionCallbackOnEnrollmentFrame + const MethodISessionCallbackOnEnrollmentProgress + const MethodISessionCallbackOnEnrollmentsEnumerated + const MethodISessionCallbackOnEnrollmentsRemoved + const MethodISessionCallbackOnError + const MethodISessionCallbackOnFeatureSet + const MethodISessionCallbackOnFeaturesRetrieved + const MethodISessionCallbackOnInteractionDetected + const MethodISessionCallbackOnLockoutCleared + const MethodISessionCallbackOnLockoutPermanent + const MethodISessionCallbackOnLockoutTimed + const MethodISessionCallbackOnSessionClosed + const MethodISessionClose + const MethodISessionDetectInteraction + const MethodISessionDetectInteractionWithContext + const MethodISessionEnroll + const MethodISessionEnrollWithContext + const MethodISessionEnrollWithOptions + const MethodISessionEnumerateEnrollments + const MethodISessionGenerateChallenge + const MethodISessionGetAuthenticatorId + const MethodISessionGetEnrollmentConfig + const MethodISessionGetFeatures + const MethodISessionInvalidateAuthenticatorId + const MethodISessionOnContextChanged + const MethodISessionRemoveEnrollments + const MethodISessionResetLockout + const MethodISessionRevokeChallenge + const MethodISessionSetFeature + const TransactionIFaceCreateSession + const TransactionIFaceGetSensorProps + const TransactionISessionAuthenticate + const TransactionISessionAuthenticateWithContext + const TransactionISessionCallbackOnAuthenticationFailed + const TransactionISessionCallbackOnAuthenticationFrame + const TransactionISessionCallbackOnAuthenticationSucceeded + const TransactionISessionCallbackOnAuthenticatorIdInvalidated + const TransactionISessionCallbackOnAuthenticatorIdRetrieved + const TransactionISessionCallbackOnChallengeGenerated + const TransactionISessionCallbackOnChallengeRevoked + const TransactionISessionCallbackOnEnrollmentFrame + const TransactionISessionCallbackOnEnrollmentProgress + const TransactionISessionCallbackOnEnrollmentsEnumerated + const TransactionISessionCallbackOnEnrollmentsRemoved + const TransactionISessionCallbackOnError + const TransactionISessionCallbackOnFeatureSet + const TransactionISessionCallbackOnFeaturesRetrieved + const TransactionISessionCallbackOnInteractionDetected + const TransactionISessionCallbackOnLockoutCleared + const TransactionISessionCallbackOnLockoutPermanent + const TransactionISessionCallbackOnLockoutTimed + const TransactionISessionCallbackOnSessionClosed + const TransactionISessionClose + const TransactionISessionDetectInteraction + const TransactionISessionDetectInteractionWithContext + const TransactionISessionEnroll + const TransactionISessionEnrollWithContext + const TransactionISessionEnrollWithOptions + const TransactionISessionEnumerateEnrollments + const TransactionISessionGenerateChallenge + const TransactionISessionGetAuthenticatorId + const TransactionISessionGetEnrollmentConfig + const TransactionISessionGetFeatures + const TransactionISessionInvalidateAuthenticatorId + const TransactionISessionOnContextChanged + const TransactionISessionRemoveEnrollments + const TransactionISessionResetLockout + const TransactionISessionRevokeChallenge + const TransactionISessionSetFeature + type AcquiredInfo byte + const AcquiredInfoDarkGlassesDetected + const AcquiredInfoFaceObscured + const AcquiredInfoFaceTooHigh + const AcquiredInfoFaceTooLeft + const AcquiredInfoFaceTooLow + const AcquiredInfoFaceTooRight + const AcquiredInfoFirstFrameReceived + const AcquiredInfoGOOD + const AcquiredInfoINSUFFICIENT + const AcquiredInfoMouthCoveringDetected + const AcquiredInfoNotDetected + const AcquiredInfoPanTooExtreme + const AcquiredInfoPoorGaze + const AcquiredInfoRECALIBRATE + const AcquiredInfoRollTooExtreme + const AcquiredInfoSTART + const AcquiredInfoSensorDirty + const AcquiredInfoTiltTooExtreme + const AcquiredInfoTooBright + const AcquiredInfoTooClose + const AcquiredInfoTooDark + const AcquiredInfoTooDifferent + const AcquiredInfoTooFar + const AcquiredInfoTooMuchMotion + const AcquiredInfoTooSimilar + const AcquiredInfoUNKNOWN + const AcquiredInfoVENDOR + type AuthenticationFrame struct + Data BaseFrame + func (s *AuthenticationFrame) MarshalParcel(p *parcel.Parcel) error + func (s *AuthenticationFrame) UnmarshalParcel(p *parcel.Parcel) error + type BaseFrame struct + AcquiredInfo AcquiredInfo + Distance float32 + IsCancellable bool + Pan float32 + Tilt float32 + VendorCode int32 + func (s *BaseFrame) MarshalParcel(p *parcel.Parcel) error + func (s *BaseFrame) UnmarshalParcel(p *parcel.Parcel) error + type Cell struct + X int32 + Y int32 + Z int32 + func (s *Cell) MarshalParcel(p *parcel.Parcel) error + func (s *Cell) UnmarshalParcel(p *parcel.Parcel) error + type EnrollmentFrame struct + Cell *Cell + Data BaseFrame + Stage EnrollmentStage + func (s *EnrollmentFrame) MarshalParcel(p *parcel.Parcel) error + func (s *EnrollmentFrame) UnmarshalParcel(p *parcel.Parcel) error + type EnrollmentStage byte + const EnrollmentStageEnrollingMovement1 + const EnrollmentStageEnrollingMovement2 + const EnrollmentStageEnrollmentFinished + const EnrollmentStageFirstFrameReceived + const EnrollmentStageHoldStillInCenter + const EnrollmentStageUNKNOWN + const EnrollmentStageWaitingForCentering + type EnrollmentStageConfig struct + Cells []Cell + Stage EnrollmentStage + func (s *EnrollmentStageConfig) MarshalParcel(p *parcel.Parcel) error + func (s *EnrollmentStageConfig) UnmarshalParcel(p *parcel.Parcel) error + type EnrollmentType byte + const EnrollmentTypeACCESSIBILITY + const EnrollmentTypeDEFAULT + type Error byte + const ErrorCANCELED + const ErrorHwUnavailable + const ErrorNoSpace + const ErrorReenrollRequired + const ErrorTIMEOUT + const ErrorUNKNOWN + const ErrorUnableToProcess + const ErrorUnableToRemove + const ErrorVENDOR + type FaceEnrollOptions struct + Context *biometricsCommon.OperationContext + EnrollmentType EnrollmentType + Features []Feature + HardwareAuthToken keymaster.HardwareAuthToken + NativeHandlePreview *common.NativeHandle + SurfacePreview *view.Surface + func (s *FaceEnrollOptions) MarshalParcel(p *parcel.Parcel) error + func (s *FaceEnrollOptions) UnmarshalParcel(p *parcel.Parcel) error + type FaceProxy struct + Remote binder.IBinder + func NewFaceProxy(remote binder.IBinder) *FaceProxy + func (p *FaceProxy) AsBinder() binder.IBinder + func (p *FaceProxy) CreateSession(ctx context.Context, sensorId int32, cb ISessionCallback) (ISession, error) + func (p *FaceProxy) GetSensorProps(ctx context.Context) ([]SensorProps, error) + type FaceSensorType byte + const FaceSensorTypeIR + const FaceSensorTypeRGB + const FaceSensorTypeUNKNOWN + type FaceStub struct + Impl IFace + Transport binder.VersionAwareTransport + func (s *FaceStub) Descriptor() string + func (s *FaceStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type Feature byte + const FeatureDEBUG + const FeatureRequireAttention + const FeatureRequireDiversePoses + type IFace interface + AsBinder func() binder.IBinder + CreateSession func(ctx context.Context, sensorId int32, cb ISessionCallback) (ISession, error) + GetSensorProps func(ctx context.Context) ([]SensorProps, error) + func NewFaceStub(impl IFaceServer) IFace + type IFaceServer interface + CreateSession func(ctx context.Context, sensorId int32, cb ISessionCallback) (ISession, error) + GetSensorProps func(ctx context.Context) ([]SensorProps, error) + type ISession interface + AsBinder func() binder.IBinder + Authenticate func(ctx context.Context, operationId int64) (biometricsCommon.ICancellationSignal, error) + AuthenticateWithContext func(ctx context.Context, operationId int64, ...) (biometricsCommon.ICancellationSignal, error) + Close func(ctx context.Context) error + DetectInteraction func(ctx context.Context) (biometricsCommon.ICancellationSignal, error) + DetectInteractionWithContext func(ctx context.Context, context_ biometricsCommon.OperationContext) (biometricsCommon.ICancellationSignal, error) + Enroll func(ctx context.Context, hat keymaster.HardwareAuthToken, type_ EnrollmentType, ...) (biometricsCommon.ICancellationSignal, error) + EnrollWithContext func(ctx context.Context, hat keymaster.HardwareAuthToken, type_ EnrollmentType, ...) (biometricsCommon.ICancellationSignal, error) + EnrollWithOptions func(ctx context.Context, options FaceEnrollOptions) (biometricsCommon.ICancellationSignal, error) + EnumerateEnrollments func(ctx context.Context) error + GenerateChallenge func(ctx context.Context) error + GetAuthenticatorId func(ctx context.Context) error + GetEnrollmentConfig func(ctx context.Context, enrollmentType EnrollmentType) ([]EnrollmentStageConfig, error) + GetFeatures func(ctx context.Context) error + InvalidateAuthenticatorId func(ctx context.Context) error + OnContextChanged func(ctx context.Context, context_ biometricsCommon.OperationContext) error + RemoveEnrollments func(ctx context.Context, enrollmentIds []int32) error + ResetLockout func(ctx context.Context, hat keymaster.HardwareAuthToken) error + RevokeChallenge func(ctx context.Context, challenge int64) error + SetFeature func(ctx context.Context, hat keymaster.HardwareAuthToken, feature Feature, ...) error + func NewSessionStub(impl ISessionServer) ISession + type ISessionCallback interface + AsBinder func() binder.IBinder + OnAuthenticationFailed func(ctx context.Context) error + OnAuthenticationFrame func(ctx context.Context, frame AuthenticationFrame) error + OnAuthenticationSucceeded func(ctx context.Context, enrollmentId int32, hat keymaster.HardwareAuthToken) error + OnAuthenticatorIdInvalidated func(ctx context.Context, newAuthenticatorId int64) error + OnAuthenticatorIdRetrieved func(ctx context.Context, authenticatorId int64) error + OnChallengeGenerated func(ctx context.Context, challenge int64) error + OnChallengeRevoked func(ctx context.Context, challenge int64) error + OnEnrollmentFrame func(ctx context.Context, frame EnrollmentFrame) error + OnEnrollmentProgress func(ctx context.Context, enrollmentId int32, remaining int32) error + OnEnrollmentsEnumerated func(ctx context.Context, enrollmentIds []int32) error + OnEnrollmentsRemoved func(ctx context.Context, enrollmentIds []int32) error + OnError func(ctx context.Context, error_ Error, vendorCode int32) error + OnFeatureSet func(ctx context.Context, feature Feature) error + OnFeaturesRetrieved func(ctx context.Context, features []Feature) error + OnInteractionDetected func(ctx context.Context) error + OnLockoutCleared func(ctx context.Context) error + OnLockoutPermanent func(ctx context.Context) error + OnLockoutTimed func(ctx context.Context, durationMillis int64) error + OnSessionClosed func(ctx context.Context) error + func NewSessionCallbackStub(impl ISessionCallbackServer) ISessionCallback + type ISessionCallbackServer interface + OnAuthenticationFailed func(ctx context.Context) error + OnAuthenticationFrame func(ctx context.Context, frame AuthenticationFrame) error + OnAuthenticationSucceeded func(ctx context.Context, enrollmentId int32, hat keymaster.HardwareAuthToken) error + OnAuthenticatorIdInvalidated func(ctx context.Context, newAuthenticatorId int64) error + OnAuthenticatorIdRetrieved func(ctx context.Context, authenticatorId int64) error + OnChallengeGenerated func(ctx context.Context, challenge int64) error + OnChallengeRevoked func(ctx context.Context, challenge int64) error + OnEnrollmentFrame func(ctx context.Context, frame EnrollmentFrame) error + OnEnrollmentProgress func(ctx context.Context, enrollmentId int32, remaining int32) error + OnEnrollmentsEnumerated func(ctx context.Context, enrollmentIds []int32) error + OnEnrollmentsRemoved func(ctx context.Context, enrollmentIds []int32) error + OnError func(ctx context.Context, error_ Error, vendorCode int32) error + OnFeatureSet func(ctx context.Context, feature Feature) error + OnFeaturesRetrieved func(ctx context.Context, features []Feature) error + OnInteractionDetected func(ctx context.Context) error + OnLockoutCleared func(ctx context.Context) error + OnLockoutPermanent func(ctx context.Context) error + OnLockoutTimed func(ctx context.Context, durationMillis int64) error + OnSessionClosed func(ctx context.Context) error + type ISessionServer interface + Authenticate func(ctx context.Context, operationId int64) (biometricsCommon.ICancellationSignal, error) + AuthenticateWithContext func(ctx context.Context, operationId int64, ...) (biometricsCommon.ICancellationSignal, error) + Close func(ctx context.Context) error + DetectInteraction func(ctx context.Context) (biometricsCommon.ICancellationSignal, error) + DetectInteractionWithContext func(ctx context.Context, context_ biometricsCommon.OperationContext) (biometricsCommon.ICancellationSignal, error) + Enroll func(ctx context.Context, hat keymaster.HardwareAuthToken, type_ EnrollmentType, ...) (biometricsCommon.ICancellationSignal, error) + EnrollWithContext func(ctx context.Context, hat keymaster.HardwareAuthToken, type_ EnrollmentType, ...) (biometricsCommon.ICancellationSignal, error) + EnrollWithOptions func(ctx context.Context, options FaceEnrollOptions) (biometricsCommon.ICancellationSignal, error) + EnumerateEnrollments func(ctx context.Context) error + GenerateChallenge func(ctx context.Context) error + GetAuthenticatorId func(ctx context.Context) error + GetEnrollmentConfig func(ctx context.Context, enrollmentType EnrollmentType) ([]EnrollmentStageConfig, error) + GetFeatures func(ctx context.Context) error + InvalidateAuthenticatorId func(ctx context.Context) error + OnContextChanged func(ctx context.Context, context_ biometricsCommon.OperationContext) error + RemoveEnrollments func(ctx context.Context, enrollmentIds []int32) error + ResetLockout func(ctx context.Context, hat keymaster.HardwareAuthToken) error + RevokeChallenge func(ctx context.Context, challenge int64) error + SetFeature func(ctx context.Context, hat keymaster.HardwareAuthToken, feature Feature, ...) error + type SensorProps struct + CommonProps common.CommonProps + EnrollPreviewHeight int32 + EnrollPreviewScale float32 + EnrollPreviewWidth int32 + EnrollTranslationX float32 + EnrollTranslationY float32 + HalControlsPreview bool + PreviewDisplayId int32 + SensorType FaceSensorType + SupportsDetectInteraction bool + func (s *SensorProps) MarshalParcel(p *parcel.Parcel) error + func (s *SensorProps) UnmarshalParcel(p *parcel.Parcel) error + type SessionCallbackProxy struct + Remote binder.IBinder + func NewSessionCallbackProxy(remote binder.IBinder) *SessionCallbackProxy + func (p *SessionCallbackProxy) AsBinder() binder.IBinder + func (p *SessionCallbackProxy) OnAuthenticationFailed(ctx context.Context) error + func (p *SessionCallbackProxy) OnAuthenticationFrame(ctx context.Context, frame AuthenticationFrame) error + func (p *SessionCallbackProxy) OnAuthenticationSucceeded(ctx context.Context, enrollmentId int32, hat keymaster.HardwareAuthToken) error + func (p *SessionCallbackProxy) OnAuthenticatorIdInvalidated(ctx context.Context, newAuthenticatorId int64) error + func (p *SessionCallbackProxy) OnAuthenticatorIdRetrieved(ctx context.Context, authenticatorId int64) error + func (p *SessionCallbackProxy) OnChallengeGenerated(ctx context.Context, challenge int64) error + func (p *SessionCallbackProxy) OnChallengeRevoked(ctx context.Context, challenge int64) error + func (p *SessionCallbackProxy) OnEnrollmentFrame(ctx context.Context, frame EnrollmentFrame) error + func (p *SessionCallbackProxy) OnEnrollmentProgress(ctx context.Context, enrollmentId int32, remaining int32) error + func (p *SessionCallbackProxy) OnEnrollmentsEnumerated(ctx context.Context, enrollmentIds []int32) error + func (p *SessionCallbackProxy) OnEnrollmentsRemoved(ctx context.Context, enrollmentIds []int32) error + func (p *SessionCallbackProxy) OnError(ctx context.Context, error_ Error, vendorCode int32) error + func (p *SessionCallbackProxy) OnFeatureSet(ctx context.Context, feature Feature) error + func (p *SessionCallbackProxy) OnFeaturesRetrieved(ctx context.Context, features []Feature) error + func (p *SessionCallbackProxy) OnInteractionDetected(ctx context.Context) error + func (p *SessionCallbackProxy) OnLockoutCleared(ctx context.Context) error + func (p *SessionCallbackProxy) OnLockoutPermanent(ctx context.Context) error + func (p *SessionCallbackProxy) OnLockoutTimed(ctx context.Context, durationMillis int64) error + func (p *SessionCallbackProxy) OnSessionClosed(ctx context.Context) error + type SessionCallbackStub struct + Impl ISessionCallback + Transport binder.VersionAwareTransport + func (s *SessionCallbackStub) Descriptor() string + func (s *SessionCallbackStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type SessionProxy struct + Remote binder.IBinder + func NewSessionProxy(remote binder.IBinder) *SessionProxy + func (p *SessionProxy) AsBinder() binder.IBinder + func (p *SessionProxy) Authenticate(ctx context.Context, operationId int64) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) AuthenticateWithContext(ctx context.Context, operationId int64, ...) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) Close(ctx context.Context) error + func (p *SessionProxy) DetectInteraction(ctx context.Context) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) DetectInteractionWithContext(ctx context.Context, context_ biometricsCommon.OperationContext) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) Enroll(ctx context.Context, hat keymaster.HardwareAuthToken, type_ EnrollmentType, ...) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) EnrollWithContext(ctx context.Context, hat keymaster.HardwareAuthToken, type_ EnrollmentType, ...) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) EnrollWithOptions(ctx context.Context, options FaceEnrollOptions) (biometricsCommon.ICancellationSignal, error) + func (p *SessionProxy) EnumerateEnrollments(ctx context.Context) error + func (p *SessionProxy) GenerateChallenge(ctx context.Context) error + func (p *SessionProxy) GetAuthenticatorId(ctx context.Context) error + func (p *SessionProxy) GetEnrollmentConfig(ctx context.Context, enrollmentType EnrollmentType) ([]EnrollmentStageConfig, error) + func (p *SessionProxy) GetFeatures(ctx context.Context) error + func (p *SessionProxy) InvalidateAuthenticatorId(ctx context.Context) error + func (p *SessionProxy) OnContextChanged(ctx context.Context, context_ biometricsCommon.OperationContext) error + func (p *SessionProxy) RemoveEnrollments(ctx context.Context, enrollmentIds []int32) error + func (p *SessionProxy) ResetLockout(ctx context.Context, hat keymaster.HardwareAuthToken) error + func (p *SessionProxy) RevokeChallenge(ctx context.Context, challenge int64) error + func (p *SessionProxy) SetFeature(ctx context.Context, hat keymaster.HardwareAuthToken, feature Feature, ...) error + type SessionStub struct + Impl ISession + Transport binder.VersionAwareTransport + func (s *SessionStub) Descriptor() string + func (s *SessionStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)