Window.displayOrientation

Function/Meaning
Display orientation (1.1.0 or later)
Type
Window class property (read-only)
Description
Represents the display orientation.
One of the values: oriUnknown (failed to get/unknown), oriPortrait (portrait), or oriLandscape (landscape).
Reference
Window.onDisplayRotate
Window.displayRotate