Returns the current rotation of the device around it's Z-Axis in 90 degree steps.

app.GetRotation() → Number: angle in degrees (0..360): 0 or 90 or 180 or 270

The values are relative to the initial orientation of the device on startup.

See Also: GetOrientation

Example - Repeatedly Show Rotation click to expand contents 

Example - Show Rotation and switch Orientation click to expand contents