iOSDevice.OrientationIsLandscape
--------------------------------

Checks whether orientation is landscape.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [iOSDevice](component_iOSDevice.md) | [7.2](newinversion72.md) | ❌ 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](iOSDeviceOrientationIsPortrait.md) may both return zero, if the device is lying flat on a desk.  
### See also

- [iOSDevice.Orientation](iOSDeviceOrientation.md)
- [iOSDevice.OrientationIsPortrait](iOSDeviceOrientationIsPortrait.md)

This function is free to use.

Created 18th March 2017 , last changed 14th January 2021

  
[iOSDevice.Orientation](iOSDeviceOrientation.md) - [iOSDevice.OrientationIsPortrait](iOSDeviceOrientationIsPortrait.md)

[HTML Version](iOSDeviceOrientationIsLandscape.shtml)