Register now for Android Dev Summit 2019!

ImageCapture.UseCaseError

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

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


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

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

Summary

Enum values

ImageCapture.UseCaseError  FILE_IO_ERROR

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

ImageCapture.UseCaseError  UNKNOWN_ERROR

An unknown error occurred. 

Public methods

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

Inherited methods

Enum values

FILE_IO_ERROR

public static final ImageCapture.UseCaseError 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.UseCaseError UNKNOWN_ERROR

An unknown error occurred.

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

Public methods

valueOf

public static ImageCapture.UseCaseError valueOf (String name)

Parameters
name String

Returns
ImageCapture.UseCaseError

values

public static final UseCaseError[] values ()

Returns
UseCaseError[]