Aracılığıyla paylaş


CameraExtensionSession.ExtensionCaptureCallback.OnCaptureFailed Method

Definition

This method is called instead of #onCaptureProcessStarted when the camera device failed to produce the required input for the device-specific extension.

[Android.Runtime.Register("onCaptureFailed", "(Landroid/hardware/camera2/CameraExtensionSession;Landroid/hardware/camera2/CaptureRequest;)V", "GetOnCaptureFailed_Landroid_hardware_camera2_CameraExtensionSession_Landroid_hardware_camera2_CaptureRequest_Handler", ApiSince=31)]
public virtual void OnCaptureFailed (Android.Hardware.Camera2.CameraExtensionSession session, Android.Hardware.Camera2.CaptureRequest request);
[<Android.Runtime.Register("onCaptureFailed", "(Landroid/hardware/camera2/CameraExtensionSession;Landroid/hardware/camera2/CaptureRequest;)V", "GetOnCaptureFailed_Landroid_hardware_camera2_CameraExtensionSession_Landroid_hardware_camera2_CaptureRequest_Handler", ApiSince=31)>]
abstract member OnCaptureFailed : Android.Hardware.Camera2.CameraExtensionSession * Android.Hardware.Camera2.CaptureRequest -> unit
override this.OnCaptureFailed : Android.Hardware.Camera2.CameraExtensionSession * Android.Hardware.Camera2.CaptureRequest -> unit

Parameters

session
CameraExtensionSession

the session received during StateCallback#onConfigured(CameraExtensionSession)

request
CaptureRequest

The request that was given to the CameraDevice

Attributes

Remarks

This method is called instead of #onCaptureProcessStarted when the camera device failed to produce the required input for the device-specific extension. The cause could be a failed camera capture request, a failed capture result or dropped camera frame.

Other requests are unaffected, and some or all image buffers from the capture may have been pushed to their respective output streams.

The default implementation of this method does nothing.

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

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