Android.Media.Projection.MediaProjection.CreateVirtualDisplay Method
Creates a Android.Hardware.Display.VirtualDisplay to capture the contents of the screen.

Syntax

[Android.Runtime.Register("createVirtualDisplay", "(Ljava/lang/String;IIIILandroid/view/Surface;Landroid/hardware/display/VirtualDisplay$Callback;Landroid/os/Handler;)Landroid/hardware/display/VirtualDisplay;", "")]
public Android.Hardware.Display.VirtualDisplay CreateVirtualDisplay (string name, int width, int height, int dpi, [Android.Runtime.GeneratedEnum] Android.Views.DisplayFlags flags, Android.Views.Surface surface, Android.Hardware.Display.VirtualDisplay.Callback callback, Android.OS.Handler handler)

Parameters

name
The name of the virtual display, must be non-empty.
width
The width of the virtual display in pixels. Must be greater than 0.
height
The height of the virtual display in pixels. Must be greater than 0.
dpi
The density of the virtual display in dpi. Must be greater than 0.
flags
A combination of virtual display flags. See Android.Hardware.Display.DisplayManager for the full list of flags.
surface
The surface to which the content of the virtual display should be rendered, or null if there is none initially.
callback
Callback to call when the virtual display's state changes, or null if none.
handler
The Android.OS.Handler on which the callback should be invoked, or null if the callback should be invoked on the calling thread's main Android.OS.Looper.

Returns

Documentation for this section has not yet been entered.

Remarks

Creates a Android.Hardware.Display.VirtualDisplay to capture the contents of the screen.

[Android Documentation]

Requirements

Namespace: Android.Media.Projection
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0