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

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

Introduction

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

The text is from its open source code.

Method

CameraCharacteristicsgetCameraCharacteristics(@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.
voidopenCamera(@NonNull String cameraId, @NonNull final CameraDevice.StateCallback callback, @Nullable Handler handler)
Open a connection to a camera with the given ID.
voidopenCamera(@NonNull String cameraId, @NonNull @CallbackExecutor Executor executor, @NonNull final CameraDevice.StateCallback callback)
Open a connection to a camera with the given ID.
voidsetTorchMode(@NonNull String cameraId, boolean enabled)
Set the flash unit's torch mode of the camera of the given ID without opening the camera device.