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 parameters | Input parameter type | Description |
|---|---|---|
| Mobile Device Object | Phone | Connected mobile object |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Direction | int | Current 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