Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

UseCaseError

class UseCaseError
kotlin.Any
   ↳ kotlin.Enum<androidx.camera.core.ImageCapture.UseCaseError>
   ↳ androidx.camera.core.ImageCapture.UseCaseError

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

This is a parameter sent to the error callback functions set in listeners such as .

Summary

Enum values

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

An unknown error occurred.

Enum values

FILE_IO_ERROR

enum val FILE_IO_ERROR : ImageCapture.UseCaseError

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

UNKNOWN_ERROR

enum val UNKNOWN_ERROR : ImageCapture.UseCaseError

An unknown error occurred.

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