Type String Library system.* Revision Release 2024.3703 Keywords orientation See also orientation resize
String value identifying the orientation of the device:
"portrait"
"landscapeLeft"
"portraitUpsideDown"
"landscapeRight"
"faceUp"
"faceDown"
The "faceUp"
and "faceDown"
orientations are only supported on iOS.
Desktop apps built for macOS will always have an orientation property of "portrait"
, even when the app is configured for landscape orientation. There is no real notion of orientation on the desktop, nor an orientation event.
See the orientation event documentation for more
system.orientation
print( "ORIENTATION: "..system.orientation )