Barcode Sequence View Settings

Defined in package com.scandit.datacapture.barcode.sequence.ui

BarcodeSequenceViewSettings
class BarcodeSequenceViewSettings

Added in version 8.0.0

Configuration options for BarcodeSequenceView.

BarcodeSequenceViewSettings()
BarcodeSequenceViewSettings()

Added in version 8.0.0

Constructs a new Barcode Sequence view settings to use when creating an instance of BarcodeSequenceView.

soundEnabled
var soundEnabled: Boolean

Added in version 8.0.0

Indicates whether the feedback should have sound enabled.

Default is true.

hapticEnabled
var hapticEnabled: Boolean

Added in version 8.0.0

Indicates whether the feedback should have haptics enabled.

Default is true.

shouldShowInitialGuidance
var shouldShowInitialGuidance: Boolean

Added in version 8.0.0

Indicates whether an initial guidance UI should be presented when the view starts.

Default is true.

trayIndicatorLineColor
var trayIndicatorLineColor: Int

Added in version 8.0.0

Color used for the tray indicator line.

Default is #0062FF.

trayIndicatorLineSize
var trayIndicatorLineSize: Float

Added in version 8.0.0

The thickness of the tray indicator line in device-independent pixels.

Default is 4.

trayIndicatorText
var trayIndicatorText: String

Added in version 8.0.0

The label text for the tray indicator. The value should contain a placeholder like "Row %d".

Default is "Row %d".

highlightBrush
var highlightBrush: Brush

Added in version 8.0.0

Brush used to render highlights for tracked and sequenced barcodes.

Default is a brush with #0062FF fill color, #FFFFFF stroke color and 2f stroke width.

highlightTextColor
var highlightTextColor: Int

Added in version 8.0.0

Text color used for highlight labels.

Default is #FFFFFF.

toJson()
fun toJson(): String

Added in version 8.0.0

Serializes the settings to a JSON string.