Compartilhar via


VirtualDisplayConfig.Builder(String, Int32, Int32, Int32) Constructor

Definition

Creates a new Builder.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;III)V", "", ApiSince=34)]
public Builder (string name, int width, int height, int densityDpi);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;III)V", "", ApiSince=34)>]
new Android.Hardware.Display.VirtualDisplayConfig.Builder : string * int * int * int -> Android.Hardware.Display.VirtualDisplayConfig.Builder

Parameters

name
String

The name of the virtual display, must be non-empty.

width
Int32

The width of the virtual display in pixels. Must be greater than 0.

height
Int32

The height of the virtual display in pixels. Must be greater than 0.

densityDpi
Int32

The density of the virtual display in dpi. Must be greater than 0.

Attributes

Remarks

Creates a new Builder.

Java documentation for android.hardware.display.VirtualDisplayConfig.Builder.VirtualDisplayConfig$Builder(java.lang.String, int, int, 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