Compartir a través de


CaptureResult.Request Property

Definition

Get the request associated with this result.

public virtual Android.Hardware.Camera2.CaptureRequest Request { [Android.Runtime.Register("getRequest", "()Landroid/hardware/camera2/CaptureRequest;", "GetGetRequestHandler")] get; }
[<get: Android.Runtime.Register("getRequest", "()Landroid/hardware/camera2/CaptureRequest;", "GetGetRequestHandler")>]
member this.Request : Android.Hardware.Camera2.CaptureRequest

Property Value

The request associated with this result. Never null.

Attributes

Remarks

Get the request associated with this result.

Whenever a request has been fully or partially captured, with CameraCaptureSession.CaptureCallback#onCaptureCompleted or CameraCaptureSession.CaptureCallback#onCaptureProgressed, the result's getRequest() will return that request.

For example, <pre>cameraDevice.capture(someRequest, new CaptureCallback() { {@literal @}Override void onCaptureCompleted(CaptureRequest myRequest, CaptureResult myResult) { assert(myResult.getRequest.equals(myRequest) == true); } }, null); </pre>

Java documentation for android.hardware.camera2.CaptureResult.getRequest().

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