The StageOrientation class defines constants enumerating the possible orientations of the stage and the device.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyDEFAULT:StageOrientation = 0

Specifies that the stage is currently in the default orientation of the device (right-side up).

@:value(cast 1)@:impl@:enuminlineread 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.

@:value(cast 2)@:impl@:enuminlineread 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.

@:value(cast 3)@:impl@:enuminlineread 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.

@:value(cast 4)@:impl@:enuminlineread onlyUPSIDE_DOWN:StageOrientation = 4

Specifies that the stage is currently upside down relative to the default orientation.