Java android.hardware.camera2 CameraAccessException fields, constructors, methods, implement or subclass

Example usage for Java android.hardware.camera2 CameraAccessException fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.hardware.camera2 CameraAccessException.

The text is from its open source code.

Field

intCAMERA_DISABLED
The camera is disabled due to a device policy, and cannot be opened.
intCAMERA_DISCONNECTED
The camera device is removable and has been disconnected from the Android device, or the camera id used with android.hardware.camera2.CameraManager#openCamera is no longer valid, or the camera service has shut down the connection due to a higher-priority access request for the camera device.
intCAMERA_ERROR
The camera device is currently in the error state.

Method

StringgetMessage()
Returns the detail message string of this throwable.
intgetReason()
The reason for the failure to access the camera.
voidprintStackTrace()
Prints this throwable and its backtrace to the standard error stream.