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
boolean getSoundEnabled()
void setSoundEnabled(boolean value)

Added in version 8.0.0

Indicates whether the feedback should have sound enabled.

Default is true.

hapticEnabled
boolean getHapticEnabled()
void setHapticEnabled(boolean value)

Added in version 8.0.0

Indicates whether the feedback should have haptics enabled.

Default is true.

shouldShowInitialGuidance
boolean getShouldShowInitialGuidance()
void setShouldShowInitialGuidance(boolean value)

Added in version 8.0.0

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

Default is true.

trayIndicatorLineColor
int getTrayIndicatorLineColor()
void setTrayIndicatorLineColor(int value)

Added in version 8.0.0

Color used for the tray indicator line.

Default is #0062FF.

trayIndicatorLineSize
float getTrayIndicatorLineSize()
void setTrayIndicatorLineSize(float value)

Added in version 8.0.0

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

Default is 4.

trayIndicatorText
@NonNull String getTrayIndicatorText()
void setTrayIndicatorText(@NonNull String value)

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
@NonNull Brush getHighlightBrush()
void setHighlightBrush(@NonNull Brush value)

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
int getHighlightTextColor()
void setHighlightTextColor(int value)

Added in version 8.0.0

Text color used for highlight labels.

Default is #FFFFFF.

toJson()
@NonNull String toJson()

Added in version 8.0.0

Serializes the settings to a JSON string.