Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

iOSDevice.OrientationIsPortrait

Checks whether orientation is portrait.

Component Version macOS Windows Linux Server iOS SDK
iOSDevice 7.2 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "iOSDevice.OrientationIsPortrait" )

Parameters

none

Result

Returns 1, 0 or error.

Description

Checks whether orientation is portrait.
Returns 1 if orientation is either Portrait or PortraitUpsideDown.

iOSDevice.OrientationIsLandscape and iOSDevice.OrientationIsPortrait may both return zero, if the device is lying flat on a desk.

See also

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


iOSDevice.OrientationIsLandscape - iOSDevice.SetBatteryMonitoringEnabled

Feedback: Report problem or ask question.