Example usage for Java android.hardware.camera2 CameraManager fields, constructors, methods, implement or subclass
The text is from its open source code.
CameraCharacteristics | getCameraCharacteristics(@NonNull String cameraId) Query the capabilities of a camera device. |
String[] | getCameraIdList() Return the list of currently connected camera devices by identifier, including cameras that may be in use by other camera API clients. |
void | openCamera(@NonNull String cameraId, @NonNull final CameraDevice.StateCallback callback, @Nullable Handler handler) Open a connection to a camera with the given ID. |
void | openCamera(@NonNull String cameraId, @NonNull @CallbackExecutor Executor executor, @NonNull final CameraDevice.StateCallback callback) Open a connection to a camera with the given ID. |
void | setTorchMode(@NonNull String cameraId, boolean enabled) Set the flash unit's torch mode of the camera of the given ID without opening the camera device. |