addCameraPosition method

Future<void> addCameraPosition(
  1. CameraPosition cameraPosition
)

Adds the camera position information for the SeeSo SDK.

Use this function to provide the SeeSo SDK with the necessary camera position information to improve the accuracy of gaze tracking. The cameraPosition parameter should contain the relevant camera position data.

Parameters:

  • cameraPosition: The camera position information to be added for the SeeSo SDK.

Note: If the camera permission is not granted or if the gaze tracker has not been properly initialized, a PlatformException may be thrown. Additionally, This function is specific to Android. If used on iOS, a MissingPluginException

Implementation

Future<void> addCameraPosition(CameraPosition cameraPosition) async {
  SeeSoPlatform.instance.addCameraPosition(cameraPosition);
}