BarcodeCameraView

Represents camera view for barcode scanner.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun attachPermissionViewModel(viewModel: IPermissionViewModel)
Link copied to clipboard
open override fun attachViewModel(viewModel: IBarcodeCameraView.ViewModel)
Link copied to clipboard
open override 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
open override fun setCameraModule(cameraModule: CameraModule)

Set device's camera module to use.

Link copied to clipboard
open override fun setCameraOrientationMode(cameraOrientationMode: CameraOrientationMode)

Set camera orientation mode.

Link copied to clipboard
fun setCameraPreviewMode(cameraPreviewMode: CameraPreviewMode)
Link copied to clipboard
open override 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
open override 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
open override 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
open override fun setSelectionOverlayPolygonColor(color: Int)

The color of the polygon in the selection overlay.

Link copied to clipboard
open override fun setSelectionOverlayTextColor(color: Int)

The color of the text in the selection overlay.

Link copied to clipboard
open override fun setSelectionOverlayTextContainerColor(color: Int)

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
open override fun setSuccessfulScanningInterval(scanningIntervalInMs: Long)

Set an interval between successful scanned frames in milliseconds.