SheetContent

data class SheetContent(var sheetColor: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), var dividerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var manualCountChangeEnabled: Boolean = true, var manualCountOutlineColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var manualCountChangeColor: ScanbotColor = ScanbotColor("?sbColorPrimary", isArgb = false), var title: StyledText = StyledText( text = "%d items", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var clearAllButton: ButtonConfiguration = ButtonConfiguration( visible = true, text = "Clear all", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 1.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorOnSurface", isArgb = false), useShadow = false ) ), var barcodeItemTitle: StyledText = StyledText( visible = true, text = "BARCODE_TITLE", color = ScanbotColor("?sbColorOnSurface", isArgb = false), useShadow = false ), var barcodeItemSubtitle: StyledText = StyledText( text = "BARCODE_SUBTITLE", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), var barcodeItemImageVisible: Boolean = true, var submitButton: ButtonConfiguration = ButtonConfiguration( visible = true, text = "Submit", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 1.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorOnSurface", isArgb = false), useShadow = false ) ), var startScanningButton: ButtonConfiguration = ButtonConfiguration( visible = true, text = "Start scanning", background = BackgroundStyle( strokeColor = ScanbotColor("?sbColorPrimary", isArgb = false), fillColor = ScanbotColor("?sbColorPrimary", isArgb = false), strokeWidth = 1.0 ), foreground = ForegroundStyle( iconVisible = true, color = ScanbotColor("?sbColorOnPrimary", isArgb = false), useShadow = false ) ), var placeholderTitle: StyledText = StyledText( text = "No barcodes here!", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var placeholderSubtitle: StyledText = StyledText( text = "The barcode list is currently empty. Close this sheet and scan your items to add them.", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), var placeholderIconBackground: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var placeholderIcon: IconStyle = IconStyle( visible = true, color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var swipeToDelete: SwipeToDelete = SwipeToDelete( enabled = true, backgroundColor = ScanbotColor("?sbColorNegative", isArgb = false), iconColor = ScanbotColor("?sbColorOnPrimary", isArgb = false) ))

Configuration of the list containing the barcodes that have already been scanned.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(sheetColor: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), dividerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), manualCountChangeEnabled: Boolean = true, manualCountOutlineColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), manualCountChangeColor: ScanbotColor = ScanbotColor("?sbColorPrimary", isArgb = false), title: StyledText = StyledText( text = "%d items", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), clearAllButton: ButtonConfiguration = ButtonConfiguration( visible = true, text = "Clear all", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 1.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorOnSurface", isArgb = false), useShadow = false ) ), barcodeItemTitle: StyledText = StyledText( visible = true, text = "BARCODE_TITLE", color = ScanbotColor("?sbColorOnSurface", isArgb = false), useShadow = false ), barcodeItemSubtitle: StyledText = StyledText( text = "BARCODE_SUBTITLE", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), barcodeItemImageVisible: Boolean = true, submitButton: ButtonConfiguration = ButtonConfiguration( visible = true, text = "Submit", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 1.0 ), foreground = ForegroundStyle( iconVisible = false, color = ScanbotColor("?sbColorOnSurface", isArgb = false), useShadow = false ) ), startScanningButton: ButtonConfiguration = ButtonConfiguration( visible = true, text = "Start scanning", background = BackgroundStyle( strokeColor = ScanbotColor("?sbColorPrimary", isArgb = false), fillColor = ScanbotColor("?sbColorPrimary", isArgb = false), strokeWidth = 1.0 ), foreground = ForegroundStyle( iconVisible = true, color = ScanbotColor("?sbColorOnPrimary", isArgb = false), useShadow = false ) ), placeholderTitle: StyledText = StyledText( text = "No barcodes here!", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), placeholderSubtitle: StyledText = StyledText( text = "The barcode list is currently empty. Close this sheet and scan your items to add them.", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), placeholderIconBackground: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), placeholderIcon: IconStyle = IconStyle( visible = true, color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), swipeToDelete: SwipeToDelete = SwipeToDelete( enabled = true, backgroundColor = ScanbotColor("?sbColorNegative", isArgb = false), iconColor = ScanbotColor("?sbColorOnPrimary", isArgb = false) ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Visibility of the barcode image in a barcode list entry. Default is true

Link copied to clipboard

Configuration of the subtitle of a barcode list entry (displaying the barcode's symbology).

Link copied to clipboard

Configuration of the title of a barcode list entry (displaying the barcode's value).

Link copied to clipboard

Configuration of the button for clearing the barcode list.

Link copied to clipboard

The color of the dividers in the list sheet. Default is "?sbColorOutline"

Link copied to clipboard

Color of the buttons for manually changing the barcode count. Default is "?sbColorPrimary"

Link copied to clipboard

Enables the user to change the number of scanned items by pressing +,-, or changing the number using a keyboard. Default is true

Link copied to clipboard

The color of the outline of the manual counting buttons in the list sheet. Default is "?sbColorOutline"

Link copied to clipboard

Configuration of the icon displayed in an empty barcode list.

Link copied to clipboard

Background color of the icon displayed in an empty barcode list. Default is "?sbColorOutline"

Link copied to clipboard

Configuration of the subtitle displayed in an empty barcode list.

Link copied to clipboard

Configuration of the title displayed in an empty barcode list.

Link copied to clipboard

Color of the list's background. Default is "?sbColorSurface"

Link copied to clipboard

Configuration of the button to start scanning displayed in an empty barcode list.

Link copied to clipboard

Configuration of the barcode list's submit button.

Link copied to clipboard

The style of the swipe-to-delete button.

Link copied to clipboard

Configuration of the barcode list's title. By default displays the total number of scanned barcodes.

Functions

Link copied to clipboard
fun toJson(): JsonObject