rotate
Set the device orientation to portrait, landscape, or upside-down to test layout in different orientations. Returns the orientation; re-run describe for updated frame coordinates.
Instructions
Set the device orientation to Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown.
Use to test layout in a different orientation. Re-run describe afterwards — frame coordinates change with the orientation.
Returns { orientation }. Fails if the target device is not booted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS UDID or Android serial). | |
| orientation | Yes | Target orientation |