ImageCaptureError

class ImageCaptureError
androidx.camera.core.ImageCapture.ImageCaptureError

Describes the error that occurred during an image capture operation (such as ).

This is a parameter sent to the error callback functions set in listeners such as .

Summary

Constants

static Int

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

static Int

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

static Int

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

static Int

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

static Int

An unknown error occurred.

Public constructors

Describes the error that occurred during an image capture operation (such as ).

Constants

CAMERA_CLOSED

static val CAMERA_CLOSED: Int

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

Value: 3

CAPTURE_FAILED

static val CAPTURE_FAILED: Int

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

Value: 2

FILE_IO_ERROR

static val FILE_IO_ERROR: Int

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

Value: 1

INVALID_CAMERA

static val INVALID_CAMERA: Int

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

Value: 4

UNKNOWN_ERROR

static val UNKNOWN_ERROR: Int

An unknown error occurred.

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

Value: 0

Public constructors

<init>

ImageCaptureError()

Describes the error that occurred during an image capture operation (such as ).

This is a parameter sent to the error callback functions set in listeners such as .