public static CaptureView.CameraSettings
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.
@MainThread void setResolution(@NotNull com.abbyy.mobile.uicomponents.CaptureView.CameraSettings.Resolution resolution)
Sets camera resolution. Default value is Resolution.FULL_HD.
resolution
- The value of camera resolution@MainThread @NotNull com.abbyy.mobile.uicomponents.CaptureView.CameraSettings.Resolution getResolution()
Returns the camera resolution.
enum CameraSettings.Resolution
object storing camera resolution.@MainThread boolean hasFlashlight()
Determines if the device has a flashlight
@MainThread boolean isFlashlightEnabled()
Defines if the flashlight in torch mode is currently enabled.
@MainThread void setFlashlightEnabled(boolean isEnabled)
Enables or disables the device flashlight torch mode.
isEnabled
- This parameter defines if the flashlight in torch mode should be enabled. Set true toenable the flashlight and false otherwise.