IBarcodeCameraView

Represents camera screen for barcodes scanning.

Inheritors

Types

Link copied to clipboard
interface ViewModel

Notified about user interactions.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun lockMinFocusDistance(lockMinFocusDistance: Boolean)

Locks the minimal supported focus distance and disables a continuous focus. The default is false.

Link copied to clipboard

Sets the delegate allowing to control which barcodes should be highlighted on the Barcode selection overlay.

Link copied to clipboard
abstract fun setCameraModule(cameraModule: CameraModule)

Set device's camera module to use.

Link copied to clipboard
abstract fun setCameraOrientationMode(cameraOrientationMode: CameraOrientationMode)

Set camera orientation mode.

Link copied to clipboard
abstract fun setCameraZoomRange(zoomRange: ZoomRange)

Set custom available zoom range. Min value 0.5f and max value 100f. Range 0.5x -> 100x is to become 1x -> 10x if that is what the device supports. Default value is ZoomRange(0.5f, 100f).

Link copied to clipboard
abstract fun setCameraZoomRatio(zoomRatio: Float)

Set current zoom ratio ranging from 0.5f to 100f. 1f represents 1x zoom ratio. The default value is 1f.

Link copied to clipboard
abstract fun setSelectionOverlayEnabled(enabled: Boolean)

Enables or disables barcode selection overlay layer.

The color of the polygon in the selection overlay, when highlighted.

Link copied to clipboard

The color of the text in the selection overlay, when highlighted.

The color of the texts background in the selection overlay, when highlighted.

Link copied to clipboard

The color of the polygon in the selection overlay.

Link copied to clipboard
abstract fun setSelectionOverlayTextColor(color: Int)

The color of the text in the selection overlay.

Link copied to clipboard

The color of the texts background in the selection overlay.

Link copied to clipboard

The color of the text in the selection overlay.

Link copied to clipboard
abstract fun setSuccessfulScanningInterval(scanningIntervalInMs: Long)

Set an interval between successful scanned frames in milliseconds.