iOS orientation
ios_orientationSet the screen orientation of an iOS device. LANDSCAPE picks whichever landscape rotation the session lands on by default (LANDSCAPE_LEFT); ask for LANDSCAPE_LEFT/LANDSCAPE_RIGHT explicitly when the direction matters. The device auto-rotates on its own too, and orientation lock (if on) can make this a no-op — the reply always reports the device's ACTUAL resulting orientation, re-read after the attempt (including FACE_UP/FACE_DOWN if it is lying flat), which may differ from what was requested. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| orientation | Yes | Orientation: PORTRAIT, LANDSCAPE (either landscape direction), or LANDSCAPE_LEFT / LANDSCAPE_RIGHT for a specific one |