activities
latest
false
UiPath logo, featuring letters U and I in white

UI Automation activities

Last updated Mar 13, 2026

GetDeviceOrientation

Retrieves the current orientation of the specified mobile device.

Definition

Namespace: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

GetDeviceOrientation(MobileOptions.GetDeviceOrientationOptions)

GetDeviceOrientation(
	    MobileOptions. GetDeviceOrientationOptions options = null
)
GetDeviceOrientation(
	    MobileOptions. GetDeviceOrientationOptions options = null
)

options MobileOptions.GetDeviceOrientationOptions : Specifies the MobileOptions.GetDeviceOrientationOptions for the GetDeviceOrientation action. Default value is null.

Return value

ScreenOrientation

The orientation of the device, stored in a ScreenOrientation object.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated