Skip to main content

Get Mobile Screen Orientation

Command description

Read the current mobile-screen orientation, for example to distinguish portrait from landscape or verify a rotation.

Command Input Parameters

input parametersInput parameter typeDescription
Mobile Device ObjectPhoneConnected mobile object

Command Output Parameters

Output parametersOutput parameter typeDescription
DirectionintCurrent screen orientation

Type definition reference

tip

Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device

FAQ

See Mobile Automation FAQ