Share via


CameraCaptureSession.CaptureCallback.OnCaptureCompleted Method

Definition

This method is called when an image capture has fully completed and all the result metadata is available.

[Android.Runtime.Register("onCaptureCompleted", "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)V", "GetOnCaptureCompleted_Landroid_hardware_camera2_CameraCaptureSession_Landroid_hardware_camera2_CaptureRequest_Landroid_hardware_camera2_TotalCaptureResult_Handler")]
public virtual void OnCaptureCompleted (Android.Hardware.Camera2.CameraCaptureSession session, Android.Hardware.Camera2.CaptureRequest request, Android.Hardware.Camera2.TotalCaptureResult result);
[<Android.Runtime.Register("onCaptureCompleted", "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)V", "GetOnCaptureCompleted_Landroid_hardware_camera2_CameraCaptureSession_Landroid_hardware_camera2_CaptureRequest_Landroid_hardware_camera2_TotalCaptureResult_Handler")>]
abstract member OnCaptureCompleted : Android.Hardware.Camera2.CameraCaptureSession * Android.Hardware.Camera2.CaptureRequest * Android.Hardware.Camera2.TotalCaptureResult -> unit
override this.OnCaptureCompleted : Android.Hardware.Camera2.CameraCaptureSession * Android.Hardware.Camera2.CaptureRequest * Android.Hardware.Camera2.TotalCaptureResult -> unit

Parameters

session
CameraCaptureSession

the session returned by CameraDevice#createCaptureSession

request
CaptureRequest

The request that was given to the CameraDevice

result
TotalCaptureResult

The total output metadata from the capture, including the final capture parameters and the state of the camera system during capture.

Attributes

Remarks

This method is called when an image capture has fully completed and all the result metadata is available.

This callback will always fire after the last #onCaptureProgressed; in other words, no more partial results will be delivered once the completed result is available.

For performance-intensive use-cases where latency is a factor, consider using #onCaptureProgressed instead.

The default implementation of this method does nothing.

Java documentation for android.hardware.camera2.CameraCaptureSession.CaptureCallback.onCaptureCompleted(android.hardware.camera2.CameraCaptureSession, android.hardware.camera2.CaptureRequest, android.hardware.camera2.TotalCaptureResult).

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