mobileUnlockOrientation

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileUnlockOrientation
Synonymsiphoneunlockorientation
Summary

Allows orientation changes and updates the interface to the device's current orientation.

Introduced4.5.3
OSios, android
Platformsmobile
Example
mobileUnlockOrientation
if loadingComplete then mobileUnlockOrientation
RelatedCommand: mobileSetAllowedOrientations, mobileLockOrientation
Function: mobileDeviceOrientation, mobileOrientationLocked, mobileAllowedOrientations, mobileOrientation
Message: orientationChanged
Description

Use the mobileUnlockOrientation command to allow orientation changes which had been temporarily prevented.

The mobileUnlockOrientation command allows orientation changes to take place again, after first preventing them with the command mobileLockOrientation.

The orientation lock can be nested, and when an unlock request causes nesting to return to zero, the interface rotates to match the device's current orientation (assuming it is in the set of allowed orientations). You can query the current orientation lock state with the mobileOrientationLocked function.