Android APIs
public static abstract class

CameraDevice.CaptureListener

extends Object
java.lang.Object
   ↳ android.hardware.camera2.CameraDevice.CaptureListener

This class is deprecated.
Use CameraCaptureSession.CaptureListener instead

Class Overview

A listener for tracking the progress of a CaptureRequest submitted to the camera device.

Summary

Public Constructors
CameraDevice.CaptureListener()
Public Methods
void onCaptureCompleted(CameraDevice camera, CaptureRequest request, TotalCaptureResult result)
This method is called when an image capture has fully completed and all the result metadata is available.
void onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure)
This method is called instead of onCaptureCompleted(CameraDevice, CaptureRequest, TotalCaptureResult) when the camera device failed to produce a CaptureResult for the request.
void onCaptureProgressed(CameraDevice camera, CaptureRequest request, CaptureResult partialResult)
This method is called when an image capture makes partial forward progress; some (but not all) results from an image capture are available.
void onCaptureSequenceAborted(CameraDevice camera, int sequenceId)
This method is called independently of the others in CaptureListener, when a capture sequence aborts before any CaptureResult or CaptureFailure for it have been returned via this listener.
void onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, long frameNumber)
This method is called independently of the others in CaptureListener, when a capture sequence finishes and all CaptureResult or CaptureFailure for it have been returned via this listener.
void onCaptureStarted(CameraDevice camera, CaptureRequest request, long timestamp)
This method is called when the camera device has started capturing the output image for the request, at the beginning of image exposure.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CameraDevice.CaptureListener ()

Public Methods

public void onCaptureCompleted (CameraDevice camera, CaptureRequest request, TotalCaptureResult result)

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

public void onCaptureFailed (CameraDevice camera, CaptureRequest request, CaptureFailure failure)

This method is called instead of onCaptureCompleted(CameraDevice, CaptureRequest, TotalCaptureResult) when the camera device failed to produce a CaptureResult for the request.

public void onCaptureProgressed (CameraDevice camera, CaptureRequest request, CaptureResult partialResult)

This method is called when an image capture makes partial forward progress; some (but not all) results from an image capture are available.

public void onCaptureSequenceAborted (CameraDevice camera, int sequenceId)

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

public void onCaptureSequenceCompleted (CameraDevice camera, int sequenceId, long frameNumber)

This method is called independently of the others in CaptureListener, when a capture sequence finishes and all CaptureResult or CaptureFailure for it have been returned via this listener.

public void onCaptureStarted (CameraDevice camera, CaptureRequest request, long timestamp)

This method is called when the camera device has started capturing the output image for the request, at the beginning of image exposure.

See Also