Language

VirtualDisplayConfig.Builder.SetSurface(Surface) Method

Definition

Sets the surface to which the content of the virtual display should be rendered.

[Android.Runtime.Register("setSurface", "(Landroid/view/Surface;)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=34)]
public Android.Hardware.Display.VirtualDisplayConfig.Builder SetSurface(Android.Views.Surface? surface);
[<Android.Runtime.Register("setSurface", "(Landroid/view/Surface;)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=34)>]
member this.SetSurface : Android.Views.Surface -> Android.Hardware.Display.VirtualDisplayConfig.Builder

Parameters

surface
Surface

Returns

Attributes

Remarks

Sets the surface to which the content of the virtual display should be rendered.

The surface can also be set after the display creation using VirtualDisplay.setSurface(Surface).

Android reference for android.hardware.display.VirtualDisplayConfig.Builder.setSurface.

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