isTracking method

Future<bool?> isTracking()

Checks whether gaze tracking is currently in progress.

Use this function to determine if the gaze tracking process is active. Before calling this function, make sure you have initialized the gaze tracker using the initGazeTracker function.

Returns:

  • true if gaze tracking is active.
  • false if gaze tracking is not active or if gaze tracking has not been properly initialized.

Note: If the camera permission is not granted or if the gaze tracker has not been properly initialized, a PlatformException may be thrown.

Implementation

Future<bool?> isTracking() async {
  return SeeSoPlatform.instance.isTracking();
}