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, var fpsLimit: Int = 20) : Parcelable

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, fpsLimit: Int = 20)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Determines which camera module to use on start-up.

Link copied to clipboard

Determines which camera preview mode to use.

Link copied to clipboard

The default zoom factor on start-up.

Link copied to clipboard

Determines whether the flash is enabled on start-up.

Link copied to clipboard

The rate of detections/recognitions per second in normal performance mode. If the number is equal or greater than the video frame rate, no frames will be skipped.

Link copied to clipboard

Determines whether to lock the focus at the minimum possible distance (device-specific).

Link copied to clipboard

Determines which mode to use when orientation should be locked to landscape or portrait.

Link copied to clipboard

Determines whether pinch-to-zoom is enabled or not.

Link copied to clipboard

Determines whether touch-to-focus is enabled or not. Android only.

Link copied to clipboard

The zoom steps available to the user.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject