Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

ImageCaptureException

open class ImageCaptureException : Exception
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ androidx.camera.core.ImageCaptureException

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
<init>(imageCaptureError: Int, @NonNull message: String, @Nullable cause: Throwable?)

Public methods
open Int

Returns the type of the image capture error.

Public constructors

<init>

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

Public methods

getImageCaptureError

open fun getImageCaptureError(): Int

Returns the type of the image capture error.

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