The Android Developer Challenge is back! Submit your idea before December 2.

ImageCapture.ImageCaptureError

public static final enum ImageCapture.ImageCaptureError
extends Enum<ImageCapture.ImageCaptureError>

java.lang.Object
   ↳ java.lang.Enum<androidx.camera.core.ImageCapture.ImageCaptureError>
     ↳ androidx.camera.core.ImageCapture.ImageCaptureError


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

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

Summary

Enum values

ImageCapture.ImageCaptureError  FILE_IO_ERROR

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

ImageCapture.ImageCaptureError  UNKNOWN_ERROR

An unknown error occurred. 

Public methods

static ImageCapture.ImageCaptureError valueOf(String name)
static final ImageCaptureError[] values()

Inherited methods

Enum values

FILE_IO_ERROR

public static final ImageCapture.ImageCaptureError FILE_IO_ERROR

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

UNKNOWN_ERROR

public static final ImageCapture.ImageCaptureError UNKNOWN_ERROR

An unknown error occurred.

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

Public methods

valueOf

public static ImageCapture.ImageCaptureError valueOf (String name)

Parameters
name String

Returns
ImageCapture.ImageCaptureError

values

public static final ImageCaptureError[] values ()

Returns
ImageCaptureError[]