getCameraPosition method

Future<CameraPosition?> getCameraPosition()

Retrieves the current camera position used by the SeeSo SDK.

Use this function to get the camera position information that is currently being used by the SeeSo SDK. The returned CameraPosition object contains the relevant camera position data.

Returns:

  • The CameraPosition currently being used by the SeeSo SDK, or null if not available.

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<CameraPosition?> getCameraPosition() async {
  return SeeSoPlatform.instance.getCameraPosition();
}