isrotationsupported

Syntax:

[Boolean] window.widget.isrotationsupported

or

[Boolean] widget.isrotationsupported

Description:

isrotationsupported is a read-only property that returns a Boolean value determining if the device supports landscape and portrait screen orientations.

If the value is true, the device supports both landscape and portrait screen orientations.

Example code:

See the setDisplayLandscape() or setDisplayPortrait() example code