mobileAllowedOrientations

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileAllowedOrientations()
Synonymsiphoneallowedorientations
Summary

Returns a list of the currently allowed orientations.

Introduced4.5.3
OSios, android
Platformsmobile
Example
put mobileAllowedOrientations() into theAllowedOrientations
Values
NameTypeDescription
return

The mobileAllowedOrientations function returns a comma delimited list including at least one of: - portrait - portrait upside down - landscape left - landscape right

RelatedCommand: mobileSetAllowedOrientations, mobileLockOrientation, mobileUnlockOrientation, mobileSetFullScreenRectForOrientations
Function: mobileDeviceOrientation, mobileOrientation
Message: orientationChanged
Description

Use the mobileAllowedOrientations function to find a list of the currently allowed orientations.

The mobileAllowedOrientations function returns a comma delimited list of the orientations the application supports.

Note: Due to the limitation of the Android operating system, landscape left and portrait upside-down are only supported on Android 2.3 and later.

Note: The iPhone X model doesnŐt currently support upside-down portrait mode. Other Apple iPad and iPhone devices continue to support both standard and upside-down portait and landscape orientations.