mobileUnlockOrientation | |
Type | command |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Synonyms | iphoneunlockorientation |
Summary | Allows orientation changes and updates the interface to the device's current orientation. |
Introduced | 4.5.3 |
OS | ios, android |
Platforms | mobile |
Example |
|
Related | Command: 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. |