Taal

VirtualDisplay.SetRotation(SurfaceOrientation) Method

Definition

Sets the rotation of the virtual display.

[Android.Runtime.Register("setRotation", "(I)V", "", ApiSince=36)]
public void SetRotation(Android.Views.SurfaceOrientation rotation);
[<Android.Runtime.Register("setRotation", "(I)V", "", ApiSince=36)>]
member this.SetRotation : Android.Views.SurfaceOrientation -> unit

Parameters

rotation
SurfaceOrientation

the new rotation of the display. May be one of Rotation0, Rotation90, Rotation180, Rotation270. Upon creation, the rotation of the virtual display is always Rotation0.

Attributes

Remarks

Sets the rotation of the virtual display.

Java documentation for android.hardware.display.VirtualDisplay.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