Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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