allowableOrientations

Typeproperty
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
get the allowableOrientations of card
set the allowableOrientations of card to {"portrait" | "portrait upside down" | "landscape left" | "landscape right" | "any"}
Associationscom.livecode.library.responsivelayout, card
Summary

Specify the orientations that are supported on these card.

Example
set the allowableOrientations of card "gallery" to "portrait"
set the allowableOrientations of card "image viewer" to "any" -->  is "portrait,portrait upside down,landscape left,landscape right".
Description

The property is used to specify the orientations that are supported on these card.

When the user rotates the device to a new orientation, the library checks if it is allowed. If allowed, the interface adapts to this new orientation. If the new orientation is not allowed, the interface remains as it was.

Important: This property only has an effect for mobile apps on iOS or Android. It is ignored by desktop applications.