ImageCaptureException


class ImageCaptureException : Exception


An exception thrown to indicate an error has occurred during image capture or while saving the captured image. See ImageCapture.OnImageCapturedCallback and ImageCapture.OnImageSavedCallback.

Summary

Public constructors

ImageCaptureException(
    imageCaptureError: Int,
    message: String,
    cause: Throwable?
)

Public functions

Int

Returns the type of the image capture error.

Public constructors

ImageCaptureException

Added in 1.0.0
ImageCaptureException(
    imageCaptureError: Int,
    message: String,
    cause: Throwable?
)

Public functions

getImageCaptureError

Added in 1.0.0
fun getImageCaptureError(): Int

Returns the type of the image capture error.

Returns
Int

The image capture error type, can have one of the following values: ERROR_UNKNOWN, ERROR_FILE_IO, ERROR_CAPTURE_FAILED, ERROR_CAMERA_CLOSED, ERROR_INVALID_CAMERA.