Change device orientation between portrait and landscape modes.
Sets the orientation of the virtual device.
This command is not supported on Web.
The command accepts one of the following string arguments.
PORTRAIT
The device is in an upright, vertical orientation. Default.
LANDSCAPE_LEFT
The device is in a horizontal orientation, rotated 90 degrees counter-clockwise.
LANDSCAPE_RIGHT
The device is in a horizontal orientation, rotated 90 degrees clockwise.
UPSIDE_DOWN
The device is in an inverted, vertical orientation.
The following example sets the device orientation to landscape left.
- setOrientation: LANDSCAPE_LEFT
Last updated 15 days ago