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.

3/2/2022 12:59:15 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.