CameraExtensionSession.ExtensionCaptureCallback.OnCaptureFailed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.