Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
iOSDevice.OrientationIsLandscape
Checks whether orientation is landscape.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
iOSDevice | 7.2 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "iOSDevice.OrientationIsLandscape" )
Parameters
none
Result
Returns 1, 0 or error.
Description
Checks whether orientation is landscape.Returns 1 if orientation is either LandscapeLeft or LandscapeRight.
iOSDevice.OrientationIsLandscape and iOSDevice.OrientationIsPortrait may both return zero, if the device is lying flat on a desk.
See also
This function is free to use.
Created 18th March 2017, last changed 14th January 2021