BarcodeItemConfiguration

data class BarcodeItemConfiguration(var imageVisible: Boolean = true, var titleSelected: StyledText = StyledText( text = "BARCODE_TITLE", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var subtitleSelected: StyledText = StyledText( text = "BARCODE_SUBTITLE", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), var titleDeselected: StyledText = StyledText( text = "BARCODE_TITLE", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var subtitleDeselected: StyledText = StyledText( text = "BARCODE_SUBTITLE", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), var backgroundSelected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("?sbColorPositive", isArgb = false), strokeWidth = 0.0, cornerRadius = 10.0 ), var backgroundDeselected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("?sbColorSurface", isArgb = false), strokeWidth = 0.0, cornerRadius = 10.0 )) : Parcelable

Configuration of the barcode info box displayed in the camera preview.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(imageVisible: Boolean = true, titleSelected: StyledText = StyledText( text = "BARCODE_TITLE", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), subtitleSelected: StyledText = StyledText( text = "BARCODE_SUBTITLE", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), titleDeselected: StyledText = StyledText( text = "BARCODE_TITLE", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), subtitleDeselected: StyledText = StyledText( text = "BARCODE_SUBTITLE", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), backgroundSelected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("?sbColorPositive", isArgb = false), strokeWidth = 0.0, cornerRadius = 10.0 ), backgroundDeselected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("?sbColorSurface", isArgb = false), strokeWidth = 0.0, cornerRadius = 10.0 ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Appearance of the barcode info box's background when a barcode is yet to be selected.

Link copied to clipboard

Appearance of the barcode info box's background when a barcode has been selected.

Link copied to clipboard

Control the visibility of the barcode image in the info box.

Link copied to clipboard

Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected.

Link copied to clipboard

Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected.

Link copied to clipboard

Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected.

Link copied to clipboard

Configuration of the text displaying a barcode's value in the info box when the barcode has been selected.

Functions

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