public enum

CameraState.ErrorType

extends java.lang.Enum<CameraState.ErrorType>

 java.lang.Object

↳java.lang.Enum<CameraState.ErrorType>

↳androidx.camera.core.CameraState.ErrorType

Overview

Types of errors the camera can encounter.

CameraX tries to recover from recoverable errors, which include CameraState.ERROR_CAMERA_IN_USE, CameraState.ERROR_MAX_CAMERAS_IN_USE and CameraState.ERROR_OTHER_RECOVERABLE_ERROR. The rest of the errors are critical, and require the intervention of the developer or user to restore camera function. These errors include CameraState.ERROR_STREAM_CONFIG, CameraState.ERROR_CAMERA_DISABLED, CameraState.ERROR_CAMERA_FATAL_ERROR and CameraState.ERROR_DO_NOT_DISTURB_MODE_ENABLED.

Summary

Enum Constants
CRITICALAn error the camera encountered that CameraX will not attempt to recover from.
RECOVERABLEAn error the camera encountered that CameraX will attempt to recover from.
Methods
public static CameraState.ErrorTypevalueOf(java.lang.String name)

public static CameraState.ErrorTypevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

RECOVERABLE

An error the camera encountered that CameraX will attempt to recover from.

Recoverable errors include CameraState.ERROR_CAMERA_IN_USE, CameraState.ERROR_MAX_CAMERAS_IN_USE and CameraState.ERROR_OTHER_RECOVERABLE_ERROR.

CRITICAL

An error the camera encountered that CameraX will not attempt to recover from.

A critical error is one that requires the intervention of the developer or user to restore camera function, and includes CameraState.ERROR_STREAM_CONFIG, CameraState.ERROR_CAMERA_DISABLED, CameraState.ERROR_CAMERA_FATAL_ERROR and CameraState.ERROR_DO_NOT_DISTURB_MODE_ENABLED.

Methods

public static CameraState.ErrorType values()

public static CameraState.ErrorType valueOf(java.lang.String name)