Share via


MultiResolutionImageReader.Surface Property

Definition

Get the surface that is used as a target for CaptureRequest

public virtual Android.Views.Surface Surface { [Android.Runtime.Register("getSurface", "()Landroid/view/Surface;", "GetGetSurfaceHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getSurface", "()Landroid/view/Surface;", "GetGetSurfaceHandler", ApiSince=31)>]
member this.Surface : Android.Views.Surface

Property Value

a Surface to use as the target for a capture request.

Attributes

Remarks

Get the surface that is used as a target for CaptureRequest

The application must use the surface returned by this function as a target for CaptureRequest. The camera device makes the decision on which internal ImageReader will receive the output image.

Please note that holding on to the Surface objects returned by this method is not enough to keep their parent MultiResolutionImageReaders from being reclaimed. In that sense, a Surface acts like a java.lang.ref.WeakReference weak reference to the MultiResolutionImageReader that provides it.

Java documentation for android.hardware.camera2.MultiResolutionImageReader.getSurface().

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