CameraExtensionSession.ExtensionCaptureCallback.OnCaptureProcessProgressed Method

Definition

This method is called when image capture processing is ongoing between #onCaptureProcessStarted and the processed still capture frame returning to the client surface.

[Android.Runtime.Register("onCaptureProcessProgressed", "(Landroid/hardware/camera2/CameraExtensionSession;Landroid/hardware/camera2/CaptureRequest;I)V", "GetOnCaptureProcessProgressed_Landroid_hardware_camera2_CameraExtensionSession_Landroid_hardware_camera2_CaptureRequest_IHandler", ApiSince=34)]
public virtual void OnCaptureProcessProgressed (Android.Hardware.Camera2.CameraExtensionSession session, Android.Hardware.Camera2.CaptureRequest request, int progress);
[<Android.Runtime.Register("onCaptureProcessProgressed", "(Landroid/hardware/camera2/CameraExtensionSession;Landroid/hardware/camera2/CaptureRequest;I)V", "GetOnCaptureProcessProgressed_Landroid_hardware_camera2_CameraExtensionSession_Landroid_hardware_camera2_CaptureRequest_IHandler", ApiSince=34)>]
abstract member OnCaptureProcessProgressed : Android.Hardware.Camera2.CameraExtensionSession * Android.Hardware.Camera2.CaptureRequest * int -> unit
override this.OnCaptureProcessProgressed : Android.Hardware.Camera2.CameraExtensionSession * Android.Hardware.Camera2.CaptureRequest * int -> unit

Parameters

session
CameraExtensionSession

The session received during StateCallback#onConfigured(CameraExtensionSession)

request
CaptureRequest

The request that was given to the CameraDevice

progress
Int32

Value between 0 and 100 (inclusive) indicating the current post-processing progress

Attributes

Remarks

This method is called when image capture processing is ongoing between #onCaptureProcessStarted and the processed still capture frame returning to the client surface.

The value included in the arguments provides clients with an estimate of the post-processing progress which could take significantly more time relative to the rest of the #capture sequence.

The callback will be triggered only by extensions that return true from calls CameraExtensionCharacteristics#isCaptureProcessProgressAvailable.

If support for this callback is present, then clients will be notified at least once with progress value 100.

The callback will be triggered only for still capture requests #capture and is not supported for repeating requests #setRepeatingRequest.

The default implementation of this method does nothing.

Java documentation for android.hardware.camera2.CameraExtensionSession.ExtensionCaptureCallback.onCaptureProcessProgressed(android.hardware.camera2.CameraExtensionSession, android.hardware.camera2.CaptureRequest, int).

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