Compartilhar via


CameraCaptureSession.CaptureCallback.OnCaptureSequenceAborted Method

Definition

This method is called independently of the others in CaptureCallback, when a capture sequence aborts before any CaptureResult or CaptureFailure for it have been returned via this listener.

[Android.Runtime.Register("onCaptureSequenceAborted", "(Landroid/hardware/camera2/CameraCaptureSession;I)V", "GetOnCaptureSequenceAborted_Landroid_hardware_camera2_CameraCaptureSession_IHandler")]
public virtual void OnCaptureSequenceAborted (Android.Hardware.Camera2.CameraCaptureSession session, int sequenceId);
[<Android.Runtime.Register("onCaptureSequenceAborted", "(Landroid/hardware/camera2/CameraCaptureSession;I)V", "GetOnCaptureSequenceAborted_Landroid_hardware_camera2_CameraCaptureSession_IHandler")>]
abstract member OnCaptureSequenceAborted : Android.Hardware.Camera2.CameraCaptureSession * int -> unit
override this.OnCaptureSequenceAborted : Android.Hardware.Camera2.CameraCaptureSession * int -> unit

Parameters

session
CameraCaptureSession

The session returned by CameraDevice#createCaptureSession

sequenceId
Int32

A sequence ID returned by the #capture family of functions.

Attributes

Remarks

This method is called independently of the others in CaptureCallback, when a capture sequence aborts before any CaptureResult or CaptureFailure for it have been returned via this listener.

Due to the asynchronous nature of the camera device, not all submitted captures are immediately processed. It is possible to clear out the pending requests by a variety of operations such as CameraCaptureSession#stopRepeating or CameraCaptureSession#abortCaptures. When such an event happens, #onCaptureSequenceCompleted will not be called.

The default implementation does nothing.

Java documentation for android.hardware.camera2.CameraCaptureSession.CaptureCallback.onCaptureSequenceAborted(android.hardware.camera2.CameraCaptureSession, 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