EyeTrackingPlatform class abstract

Platform interface for eye tracking functionality.

This abstract class defines the interface that platform-specific implementations must follow to provide eye tracking capabilities.

Inheritance
  • Object
  • PlatformInterface
  • EyeTrackingPlatform
Implementers

Constructors

EyeTrackingPlatform()
Constructs a EyeTrackingPlatform.

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

addCalibrationPoint(CalibrationPoint point) Future<bool>
addRegressionModule(String name, String constructorJsGlobal) Future<bool>
addTrackerModule(String name, String constructorJsGlobal) Future<bool>
constructorJsGlobal is the name of a global JS constructor function you expose
clearCalibration() Future<bool>
dispose() Future<bool>
enableBackgroundTracking(bool enable) Future<bool>
finishCalibration() Future<bool>
getCalibrationAccuracy() Future<double>
getCapabilities() Future<Map<String, dynamic>>
getEyeStateStream() Stream<EyeState>
getFaceDetectionStream() Stream<List<FaceDetection>>
getGazeStream() Stream<GazeData>
getHeadPoseStream() Stream<HeadPose>
getPlatformVersion() Future<String?>
getState() Future<EyeTrackingState>
getStateStream() Stream<EyeTrackingState>
getWarmedOnce() bool
getWarmedOnceStream() Stream<bool>
hasCameraPermission() Future<bool>
initialize() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseTracking() Future<bool>
prewarm() Future<void>
requestCameraPermission() Future<bool>
resumeTracking() Future<bool>
setAccuracyMode(String mode) Future<bool>
setRegression(String regression) Future<bool>
setTracker(String tracker) Future<bool>
setTrackingFrequency(int fps) Future<bool>
startCalibration(List<CalibrationPoint> points) Future<bool>
startTracking() Future<bool>
stopTracking() Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance EyeTrackingPlatform
The default instance of EyeTrackingPlatform to use.
getter/setter pair