setForcedOrientation method

Future<bool?> setForcedOrientation(
  1. SeeSoOrientation orientation
)

Forces a manual orientation change for the device in the SeeSo SDK.

Use this function to manually change the orientation of the device in the SeeSo SDK. The orientation parameter specifies the desired orientation using the SeeSoOrientation enum.

Returns:

  • true if the orientation change was successful.
  • false if the orientation change failed or if the feature is not supported.
  • null if an error occurs during the process.

Note: Before calling this function, ensure that the gaze tracker has been properly initialized and that camera permission is granted. Otherwise, a PlatformException may be thrown. Additionally, please be aware that this function is specific to iOS. If used on Android, a MissingPluginException may occur.

Implementation

Future<bool?> setForcedOrientation(SeeSoOrientation orientation) async {
  return SeeSoPlatform.instance.setForcedOrientation(orientation);
}