AndroidDeviceOrientation
AndroidDeviceOrientation
class implements the DeviceOrientation interface to handle device orientation specifically for Android devices. This class retrieves the current orientation of the device (portrait, landscape, or unknown) based on the system configuration. It checks the device's orientation and provides properties and methods to determine whether the device is in portrait or landscape mode.
It uses the Resources.configuration.orientation
property to determine the current orientation of the device.
Author
Swapnil Musale