Partager via


UiAutomation.SetRotation(UiAutomationRotation) Method

Definition

Sets the device rotation.

[Android.Runtime.Register("setRotation", "(I)Z", "")]
public bool SetRotation (Android.App.UiAutomationRotation rotation);
[<Android.Runtime.Register("setRotation", "(I)Z", "")>]
member this.SetRotation : Android.App.UiAutomationRotation -> bool

Parameters

rotation
UiAutomationRotation

The desired rotation.

Returns

Whether the rotation was set successfully.

Attributes

Remarks

Sets the device rotation. A client can freeze the rotation in desired state or freeze the rotation to its current state or unfreeze the rotation (rotating the device changes its rotation state).

Java documentation for android.app.UiAutomation.setRotation(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also