Android.App.UiAutomation.SetRotation Method
Sets the device rotation.

Syntax

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

See Also

UiAutomation.RotationFreeze0
UiAutomation.RotationFreeze90
UiAutomation.RotationFreeze180
UiAutomation.RotationFreeze270
UiAutomation.RotationFreezeCurrent
UiAutomation.RotationUnfreeze

Parameters

rotation
The desired rotation.

Returns

Documentation for this section has not yet been entered.

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