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 |
|
Interfaces
- CameraControl
- CameraX.ErrorListener
- Config
- Config.ExtendableBuilder
- ImageAnalysis.Analyzer
- ImageCapture.OnImageSavedListener
- ImageInfo
- ImageProxy
- ImageProxy.PlaneProxy
- ImageProxyBundle
- MutableConfig
- Observable
- Observable.Observer
- OnFocusListener
- Preview.OnPreviewOutputUpdateListener
- UseCaseEventConfig
- UseCaseEventConfig.Builder
Classes
Enums
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.