CameraConfiguration

data class CameraConfiguration(var cameraModule: CameraModule = CameraModule.BACK, var zoomSteps: List<Double> = listOf( 1.0, 2.0, 5.0 ), var defaultZoomFactor: Double = 1.0, var flashEnabled: Boolean = false, var minFocusDistanceLock: Boolean = false, var touchToFocusEnabled: Boolean = false, var pinchToZoomEnabled: Boolean = true, var orientationLockMode: OrientationLockMode = OrientationLockMode.NONE, var cameraPreviewMode: CameraPreviewMode = CameraPreviewMode.FILL_IN)

Configuration of the camera settings to be used while scanning.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(cameraModule: CameraModule = CameraModule.BACK, zoomSteps: List<Double> = listOf( 1.0, 2.0, 5.0 ), defaultZoomFactor: Double = 1.0, flashEnabled: Boolean = false, minFocusDistanceLock: Boolean = false, touchToFocusEnabled: Boolean = false, pinchToZoomEnabled: Boolean = true, orientationLockMode: OrientationLockMode = OrientationLockMode.NONE, cameraPreviewMode: CameraPreviewMode = CameraPreviewMode.FILL_IN)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Which camera module to use on start-up. Default is BACK

Link copied to clipboard

Which camera preview mode to use. Default is FILL_IN

Link copied to clipboard

The default zoom factor on start-up. Default is 1.0

Link copied to clipboard

Whether the flash is enabled by default. Default is false

Link copied to clipboard

Whether to lock the focus on the minimum possible distance (device-specific). Default is false

Link copied to clipboard

Which mode to use when orientation should be locked to landscape or portrait. Default is NONE

Link copied to clipboard

Whether pinch-to-zoom is enabled. Default is true

Link copied to clipboard

Whether touch-to-focus is enabled. Android only. Default is false

Link copied to clipboard

The number of zoom steps available to the user.

Functions

Link copied to clipboard
fun toJson(): JsonObject