| java.lang.Object | ||||
| ↳ | java.lang.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | android.util.AndroidException | |||
| ↳ | android.hardware.camera2.CameraAccessException | |||
CameraAccessException is thrown if a camera device could not
 be queried or opened by the CameraManager, or if the connection to an
 opened CameraDevice is no longer valid.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CAMERA_DISABLED | The camera is disabled due to a device policy, and cannot be opened. | |||||||||
| int | CAMERA_DISCONNECTED | The camera device is removable and has been disconnected from the Android
 device, or the camera id used with openCamera(String, CameraDevice.StateCallback, Handler)is no longer valid, or the camera service has shut down the connection due to a
 higher-priority access request for the camera device. | |||||||||
| int | CAMERA_ERROR | The camera device is currently in the error state. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          The reason for the failure to access the camera.
          
    
         | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Throwable | |||||||||||
|  From class
  java.lang.Object | |||||||||||
The camera is disabled due to a device policy, and cannot be opened.
The camera device is removable and has been disconnected from the Android
 device, or the camera id used with openCamera(String, CameraDevice.StateCallback, Handler)
 is no longer valid, or the camera service has shut down the connection due to a
 higher-priority access request for the camera device.
The camera device is currently in the error state.
The camera has failed to open or has failed at a later time
 as a result of some non-user interaction. Refer to
 onError(CameraDevice, int) for the exact
 nature of the error.
No further calls to the camera will succeed. Clean up
 the camera with close() and try
 handling the error in order to successfully re-open the camera.
 
The reason for the failure to access the camera.