setOrientation

setOrientation programatically adjusts the orientation of the virtual device.

- setOrientation: LANDSCAPE_LEFT

By default the virtual device will be launched in a portrait orientation. The following values are supported with this command:

  • PORTRAIT

  • LANDSCAPE_LEFT

  • LANDSCAPE_RIGHT

  • UPSIDE_DOWN

Last updated

Was this helpful?