enum abstract StageOrientation(Null<Int>)
package openfl.display
Available on all platforms
The StageOrientation class defines constants enumerating the possible orientations of the stage and the device.
Variables
inlineread onlyDEFAULT:StageOrientation = 0
Specifies that the stage is currently in the default orientation of the device (right-side up).
inlineread onlyROTATED_LEFT:StageOrientation = 1
Specifies that the stage is currently rotated left relative to the default orientation.
Note: When the orientation of the device is rotated left, the orientation of the stage must be rotated right in order to remain upright.
inlineread onlyROTATED_RIGHT:StageOrientation = 2
Specifies that the stage is currently rotated right relative to the default orientation.
Note: When the orientation of the device is rotated right, the orientation of the stage must be rotated left in order to remain upright.
inlineread onlyUNKNOWN:StageOrientation = 3
Specifies that the device has not determined an orientation. This state can occur when the device is lying flat on a table and also while the application is initializing.
inlineread onlyUPSIDE_DOWN:StageOrientation = 4
Specifies that the stage is currently upside down relative to the default orientation.