-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ScreenOrientation extends Enum<ScreenOrientation>
Enum to represent the screen rotation of a device.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MirrorLeftRotate the screen by 270 degrees clockwise and flip vertically (reflection around the x-axis)
MirrorDownRotate the screen by 180 degrees clockwise and flip horizontally (reflection around the y-axis)
MirrorRightRotate the screen by 90 degrees clockwise and flip vertically (reflection around the x-axis)
MirrorUpHorizontally flip the screen (reflection around the y-axis)
MirrorRotate270Rotate the screen by 270 degrees clockwise and flip vertically (reflection around the x-axis)
MirrorRotate180Rotate the screen by 180 degrees clockwise and flip horizontally (reflection around the y-axis)
MirrorRotate90Rotate the screen by 90 degrees clockwise and flip vertically (reflection around the x-axis)
MirrorRotate0Horizontally flip the screen (reflection around the y-axis)
LeftRotate the screen by 270 degrees clockwise
DownRotate the screen by 180 degrees clockwise
RightRotate the screen by 90 degrees clockwise
UpDefault orientation, no rotation
Rotate270Rotate the screen by 270 degrees clockwise
Rotate180Rotate the screen by 180 degrees clockwise
Rotate90Rotate the screen by 90 degrees clockwise
Rotate0Rotate the screen by 0 degrees clockwise. This is the Default orientation.
-
Method Summary
Modifier and Type Method Description final IntegergetOrientation()final BooleangetMirror()final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getOrientation
final Integer getOrientation()
-
getOrdinal
final Integer getOrdinal()
-
-
-
-