| java.lang.Object | ||
| ↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
| ↳ | com.datalogic.device.configuration.ScreenRotationLockPolicy | |
The ScreenRotationLockPolicy enumeration defines the screen rotation lock modes
that can be applied to the device display. This enum controls how the screen orientation is
handled and whether it automatically rotates based on device orientation sensors or remains
locked to a specific orientation.
Supported only on devices running Android 15 or later.
| Enum Values | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ScreenRotationLockPolicy | INVERTED_LANDSCAPE | The screen is locked in inverted landscape orientation. | |||||||||
| ScreenRotationLockPolicy | INVERTED_PORTRAIT | The screen is locked in inverted portrait orientation. | |||||||||
| ScreenRotationLockPolicy | LANDSCAPE | The screen is locked in landscape orientation. | |||||||||
| ScreenRotationLockPolicy | PORTRAIT | The screen is locked in portrait orientation. | |||||||||
| ScreenRotationLockPolicy | SENSOR_DEPENDENT | The screen rotation is dependent on the device's orientation sensor. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the corresponding ScreenRotationLockPolicy value from a valid integer.
| |||||||||||
Converts the enum constant to its corresponding integer ordinal value.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
The screen is locked in inverted landscape orientation. The display will not rotate and will remain in upside-down landscape mode.
The screen is locked in inverted portrait orientation. The display will not rotate and will remain in upside-down portrait mode.
The screen is locked in landscape orientation. The display will not rotate and will remain in landscape mode regardless of device orientation.
The screen is locked in portrait orientation. The display will not rotate and will remain in portrait mode regardless of device orientation.
The screen rotation is dependent on the device's orientation sensor. The display will automatically rotate based on how the device is held.
Retrieves the corresponding ScreenRotationLockPolicy value from a valid integer.
If the provided integer is not a valid ordinal, returns the default value SENSOR_DEPENDENT.
| n | the integer value representing the ordinal position |
|---|
SENSOR_DEPENDENT if invalid
Converts the enum constant to its corresponding integer ordinal value.