mobileOrientation

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileOrientation()
Synonymsiphoneorientation
Summary

Returns the current interface orientation.

Introduced4.5.2
OSios, android
Platformsmobile
Example
put mobileOrientation() into theInterfaceOrientation
Values
NameTypeDescription
return

The mobileDeviceOrientation function returns a string value.

portrait: the device is being held upward with the home button at the bottom
portrait upside down: the device is being held upward with the home button at the top
landscape left: the device is being held upward with the home button on the left
landscape right: the device is being held upward with the home button on the right
RelatedCommand: mobileSetAllowedOrientations, mobileLockOrientation, mobileUnlockOrientation, mobileSetFullScreenRectForOrientations
Function: mobileDeviceOrientation, mobileAllowedOrientations
Message: orientationChanged
Description

Use the mobileOrientation function to find the current interface orientation.

The mobileOrientation function returns the current orientation of the interface.

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.