FacePingPlatform class abstract

The calls the Dart API makes into the native FacePing SDKs. Replace instance in tests with a fake.

Inheritance
  • Object
  • PlatformInterface
  • FacePingPlatform
Implementers

Constructors

FacePingPlatform()
Constructs a platform. Subclasses must call this with no arguments (it passes the verification token).

Properties

cameraFailures → Stream<CameraFailure>
Camera views that couldn't start.
no setter
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 setter

Methods

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

Operators

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

Static Properties

instance ↔ FacePingPlatform
The platform in use: the Android and iOS bridge by default.
getter/setter pair