CameraSettings interface
Settings of the camera. The interface provides methods for tuning camera resolution. Also, if for some reason you have to hide embedded flashlight button and implement a custom one, you can use the methods of this interface to manage the flashlight.
interface CameraSettings
Methods
Important! All methods should be called from the Android Main Thread.
| Name | Description |
|---|---|
| setResolution | Sets camera resolution. |
| getResolution | Provides access to the defined resolution. |
| hasFlashlight | Defines if the device has a flashlight. |
| isFlashlightEnabled | Defines if the flashlight is currently enabled in a torch mode. |
| setFlashlightEnabled | Enables or disables the device flashlight torch mode. |
Nested classes
| Name | Description |
|---|---|
| Resolution | The resolution of the images captured from the camera preview. |
02.03.2022 12:59:15