IosDeviceOrientationImpl
IosDeviceOrientationImpl
is an implementation of the DeviceOrientation interface specific to iOS devices. This class retrieves the current orientation of the iOS device by accessing the window's interface orientation from the UIKit framework. It uses UIApplication.sharedApplication.connectedScenes
to determine the device's orientation.
The class provides properties and methods to check whether the device is in portrait or landscape mode.
Author
N7ghtm4r3 - Swapnil Musale
Properties
Link copied to clipboard
isLandscape
checks if the device is currently in landscape mode.
Link copied to clipboard
isPortrait
checks if the device is currently in portrait mode.
Link copied to clipboard
windowOrientation
holds the current interface orientation of the first window, which is converted to an integer value.