VirtualDisplay.Surface Property
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.
Gets the surface that backs the virtual display. -or- Sets the surface that backs the virtual display.
public Android.Views.Surface? Surface { [Android.Runtime.Register("getSurface", "()Landroid/view/Surface;", "")] get; [Android.Runtime.Register("setSurface", "(Landroid/view/Surface;)V", "")] set; }
[<get: Android.Runtime.Register("getSurface", "()Landroid/view/Surface;", "")>]
[<set: Android.Runtime.Register("setSurface", "(Landroid/view/Surface;)V", "")>]
member this.Surface : Android.Views.Surface with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Gets the surface that backs the virtual display.
Java documentation for android.hardware.display.VirtualDisplay.getSurface()
.
Property setter documentation:
Sets the surface that backs the virtual display.
Detaching the surface that backs a virtual display has a similar effect to turning off the screen.
It is still the caller's responsibility to destroy the surface after it has been detached.
Java documentation for android.hardware.display.VirtualDisplay.setSurface(android.view.Surface)
.
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.