VirtualDisplay.SetRotation(SurfaceOrientation) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Surface#ROTATION_0
,
Surface#ROTATION_90
, Surface#ROTATION_180
, Surface#ROTATION_270
.
Upon creation, the rotation of the virtual display is always Surface#ROTATION_0
.
- 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.