Android Guides | Samples

Android.App.UiAutomation.SetRotation Method

Sets the device rotation.

Syntax

[Android.Runtime.Register("setRotation", "(I)Z", "")]
public Boolean SetRotation ([Android.Runtime.GeneratedEnum] UiAutomationRotation rotation)

See Also

Parameters

rotation
The desired rotation.

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).

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18