PigeonFacePingPlatform class

The default platform: Pigeon messages to the plugin's Kotlin and Swift code.

Inheritance

Constructors

PigeonFacePingPlatform({BinaryMessenger? binaryMessenger})
Creates the bridge. binaryMessenger is for tests.

Properties

cameraFailures → Stream<CameraFailure>
Camera views that couldn't start.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
synced → Stream<SyncResult>
Every sync, automatic or not.
no setteroverride

Methods

cancelLive(int cameraId) → Future<void>
Stops a live check running on the camera view.
override
capture(int cameraId) → Future<FaceImage>
Takes a still from the camera view cameraId.
override
close() → Future<void>
Frees the native FacePing.
override
configure(FacePingOptions options) → Future<void>
Sets the native FacePing up (returns at once; the models load in the background).
override
enroll(String id, FaceImage photo) → Future<EnrollResult>
Enrols a face (sandbox only).
override
enrolledIds() → Future<Set<String>>
Who can be verified on this device.
override
forget(String id) → Future<bool>
Deletes one face.
override
forgetAll() → Future<void>
Deletes every face.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCameraFailed(int cameraId, String message) → void
onSynced(NativeSyncResult result) → void
releaseImage(FaceImage image) → Future<void>
Frees a captured picture.
override
sdkVersion() → Future<String>
The native SDK's version.
override
setGuideState(int cameraId, FaceGuideState state) → Future<void>
Sets the camera's face guide.
override
setShowGuide(int cameraId, bool show) → Future<void>
Shows or hides the camera's face guide.
override
startCamera(int cameraId) → Future<void>
Starts (or restarts) the camera.
override
sync() → Future<SyncResult>
Syncs now.
override
toString() → String
A string representation of this object.
inherited
verify(String id, FaceImage photo) → Future<VerifyResult>
Verifies one photo.
override
verifyLive(String id, int cameraId) → Future<VerifyResult>
Runs a live check on the camera view cameraId.
override

Operators

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

Static Methods

mapError(Object error) → Object
Turns a native error into the matching FacePingException; anything else is rethrown as it is.
syncResult(NativeSyncResult r) → SyncResult
A native sync result as the public type.