Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
iOSDevice.Orientation
Returns the physical orientation of the device.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
iOSDevice | 7.2 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "iOSDevice.Orientation" )
Parameters
none
Result
Returns value or error.
Description
Returns the physical orientation of the device.The value of the property is a constant that indicates the current orientation of the device. This value represents the physical orientation of the device and may be different from the current orientation of your application’s user interface.
Value can be Portrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight, FaceUp, FaceDown or Unknown.
See also
- iOSApp.SetOrientationDidChangeEvaluate
- iOSDevice.OrientationIsLandscape
- iOSDevice.OrientationIsPortrait
This function is free to use.
Created 18th March 2017, last changed 18th March 2017
