ImageCapture.ImageCaptureError

public static abstract @interface ImageCapture.ImageCaptureError
implements Annotation

androidx.camera.core.ImageCapture.ImageCaptureError


Describes the error that occurred during an image capture operation (such as ImageCapture.takePicture(Executor, OnImageCapturedCallback)).

This is a parameter sent to the error callback functions set in listeners such as ImageCapture.OnImageSavedCallback.onError(int, String, Throwable).

Summary

Constants

int CAMERA_CLOSED

An error indicating the request cannot be done due to camera is closed.

int CAPTURE_FAILED

An error reported by camera framework indicating the capture request is failed.

int FILE_IO_ERROR

An error occurred while attempting to read or write a file, such as when saving an image to a File.

int INVALID_CAMERA

An error indicating this ImageCapture is not bound to a valid camera.

int UNKNOWN_ERROR

An unknown error occurred.

Inherited methods

Constants

CAMERA_CLOSED

public static final int CAMERA_CLOSED

An error indicating the request cannot be done due to camera is closed.

Constant Value: 3 (0x00000003)

CAPTURE_FAILED

public static final int CAPTURE_FAILED

An error reported by camera framework indicating the capture request is failed.

Constant Value: 2 (0x00000002)

FILE_IO_ERROR

public static final int FILE_IO_ERROR

An error occurred while attempting to read or write a file, such as when saving an image to a File.

Constant Value: 1 (0x00000001)

INVALID_CAMERA

public static final int INVALID_CAMERA

An error indicating this ImageCapture is not bound to a valid camera.

Constant Value: 4 (0x00000004)

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR

An unknown error occurred.

See message parameter in onError callback or log for more details.

Constant Value: 0 (0x00000000)