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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    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

This function is free to use.

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


iOSDevice.OrientationIsLandscape - iOSDevice.SetBatteryMonitoringEnabled

💬 Ask a question or report a problem