mobileOrientationLocked | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | iphoneorientationlocked | ||||||
Summary | Queries the current lock state. | ||||||
Introduced | 4.5.3 | ||||||
OS | ios, android | ||||||
Platforms | mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Command: mobileSetAllowedOrientations, mobileUnlockOrientation Function: mobileAllowedOrientations, mobileDeviceOrientation, mobileOrientation Message: orientationChanged | ||||||
Description | Use the mobileOrientationLocked function to query the current orientation lock state. The mobileOrientationLocked function tests if the current orientation is locked. This may be while your application is performing a task and you do not want the orientation to change until the task is complete. The orientation lock can be nested, and when an unlock request causes the nesting to return to zero, the interface rotates to match the device's current orientation (assuming it is in the set of allowed orientations). |