setTrackingFPS method

Future<bool?> setTrackingFPS(
  1. int fps
)

Sets the frames per second (FPS) for gaze tracking in the SeeSo SDK.

Use this function to specify the desired FPS for gaze tracking in the SeeSo SDK. The FPS value can range from 1 to 30, with the default FPS being 30 for the front camera.

Parameters:

  • fps: The desired frames per second for gaze tracking.

Returns:

  • true if the FPS setting is successfully updated.
  • false if the FPS value is out of range (below 1 or above 30) or if an error occurs.

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?> setTrackingFPS(int fps) async {
  return SeeSoPlatform.instance.setTrackingFPS(fps);
}