Window.displayRotate

Function/Meaning
Display rotation angle
Type
Window Class Properties
Explanation

Represents the rotation angle of the display.
If it is 0, 90, 180, 270, or -1, and it cannot be obtained, it is -1.

Reference
Window.onDisplayRotate
Window.displayOrientation