resetForcedOrientation method

Future<bool?> resetForcedOrientation()

Resets the previously forced orientation for the device in the SeeSo SDK.

Use this function to reset the previously set forced orientation for the device in the SeeSo SDK. After calling this function, the device's orientation will be set automatically.

Returns:

  • true if the reset of forced orientation was successful.
  • false if the reset 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?> resetForcedOrientation() async {
  return SeeSoPlatform.instance.resetForcedOrientation();
}