FaceAnalyzer class

Dart-side face analyzer that delegates entirely to the bundled native ML library via a Pigeon platform channel.

Frames never cross the channel: analyzeKameraFrame has the native side take the latest kamera frame and run its tuned detector on it, emitting per-frame CaptureReadyEvents for the selfie + liveness JPGs.

Constructors

FaceAnalyzer({BinaryMessenger? binaryMessenger})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

analyzeKameraFrame({required int deviceOrientationDegrees}) → Future<FaceScanResult>
Analyze the LATEST kamera analysis frame — the pixels never cross the platform channel. The native side takes the frame from kamera's KameraFrameHub, converts it, and runs it through the native session. deviceOrientationDegrees carries the raw device tilt for the "rotate device" validator. Fails with no_frame when no frame is pending — callers treat that as a skipped tick, not an error.
close() → Future<void>
Release native resources. Call when the scan session is complete.
configure(FaceConfig config, {required String sessionId}) → Future<void>
Configure the native scan session. Call before the first analyzeKameraFrame, or after reset to apply new settings. Omitting a field uses native defaults.
flush() → Future<void>
Wait for every JPG the native transitioner emitted during the session to land on disk. Call once the scan reaches a terminal state and before reading the captured files (typically just before submission).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → Future<void>
Reset the native state machine to UseSmileIDScanStateType.initial, preserving the current configuration.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited