Package

## Interface CaptureView.CameraSettings

-     public interface 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.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public enum` | `CaptureView.CameraSettings.Resolution` | The resolution of the images captured from the camera preview.

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Unit` | `setResolution(CaptureView.CameraSettings.Resolution resolution)` | Sets camera resolution.
    `abstract CaptureView.CameraSettings.Resolution` | `getResolution()` | Returns the camera resolution.
    `abstract Boolean` | `hasFlashlight()` | Determines if the device has a flashlight
    `abstract Boolean` | `isFlashlightEnabled()` | Defines if the flashlight in torch mode is currently enabled.
    `abstract Unit` | `setFlashlightEnabled(Boolean isEnabled)` | Enables or disables the device flashlight torch mode.

    - ### Methods inherited from class com.abbyy.mobile.uicomponents.CaptureView.CameraSettings

      `equals, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### setResolution

          @MainThread() abstract Unit setResolution(CaptureView.CameraSettings.Resolution resolution)

      Sets camera resolution. Default value is Resolution.FULL_HD.

      Parameters:
        `resolution` - The value of camera resolution

    - #### getResolution

          @MainThread() abstract CaptureView.CameraSettings.Resolution getResolution()

      Returns the camera resolution.

    - #### hasFlashlight

          @MainThread() abstract Boolean hasFlashlight()

      Determines if the device has a flashlight

    - #### isFlashlightEnabled

          @MainThread() abstract Boolean isFlashlightEnabled()

      Defines if the flashlight in torch mode is currently enabled.

    - #### setFlashlightEnabled

          @MainThread() abstract Unit setFlashlightEnabled(Boolean isEnabled)

      Enables or disables the device flashlight torch mode.

      Parameters:
        `isEnabled` - This parameter defines if the flashlight in torch mode should be enabled.