Sdílet prostřednictvím


CaptureRequest.Builder.AddTarget(Surface) Method

Definition

Add a surface to the list of targets for this request

[Android.Runtime.Register("addTarget", "(Landroid/view/Surface;)V", "")]
public void AddTarget (Android.Views.Surface outputTarget);
[<Android.Runtime.Register("addTarget", "(Landroid/view/Surface;)V", "")>]
member this.AddTarget : Android.Views.Surface -> unit

Parameters

outputTarget
Surface

Surface to use as an output target for this request

Attributes

Remarks

Add a surface to the list of targets for this request

The Surface added must be one of the surfaces included in the most recent call to CameraDevice#createCaptureSession, when the request is given to the camera device.

Adding a target more than once has no effect.

Java documentation for android.hardware.camera2.CaptureRequest.Builder.addTarget(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.

Applies to