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.

For more information on handling screen orientation changes in a widget, see Designing for dynamic screen orientation.

Syntax:

[Boolean] window.widget.isrotationsupported

or

[Boolean] widget.isrotationsupported

Example code:

See the setDisplayLandscape() or setDisplayPortrait() example code