mobileSetFullScreenRectForOrientations | ||||||||||
Type | command | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Set the list of allowed orientations. | |||||||||
Introduced | 8.1.10 | |||||||||
OS | ios, android | |||||||||
Platforms | mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Related | Property: fullscreenMode Message: orientationChanged, resizeStack Command: mobileLockOrientation, mobileSetAllowedOrientations, mobileUnlockOrientation Function: mobileAllowedOrientations, mobileDeviceOrientation, mobileOrientation | |||||||||
Description | Use the mobileSetFullScreenRectForOrientations command to set the rect to resize the stack to when the orientation changes and the stack has its fullscreenMode set. Normally when a fullscreenMode is set the stack is not resized and does receive the resizeStack message. The rect is set after the orientationChanged message is sent. If the rect for the new orientation is different to the current stack rect the resizeStack message will be sent once the new rect is applied. The setting take affect the next time an orientation change is applied. The interface orientation only changes if the new orientation is among the mobileAllowedOrientations.
|