TopBarConfiguration
data class TopBarConfiguration(var title: StyledText = StyledText( visible = false, text = "Scan Item", color = ScanbotColor("?sbColorOnPrimary", isArgb = false) ), var mode: TopBarMode = TopBarMode.SOLID, var statusBarMode: StatusBarMode = StatusBarMode.LIGHT, var backgroundColor: ScanbotColor = ScanbotColor("?sbColorPrimary", isArgb = false), var cancelButton: ButtonConfiguration = ButtonConfiguration( text = "Cancel", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( color = ScanbotColor("?sbColorOnPrimary", isArgb = false) ) ))
Configuration of the top screen bar's appearance.
Constructors
Link copied to clipboard
constructor(json: JsonObject)
constructor(title: StyledText = StyledText( visible = false, text = "Scan Item", color = ScanbotColor("?sbColorOnPrimary", isArgb = false) ), mode: TopBarMode = TopBarMode.SOLID, statusBarMode: StatusBarMode = StatusBarMode.LIGHT, backgroundColor: ScanbotColor = ScanbotColor("?sbColorPrimary", isArgb = false), cancelButton: ButtonConfiguration = ButtonConfiguration( text = "Cancel", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( color = ScanbotColor("?sbColorOnPrimary", isArgb = false) ) ))
Properties
Link copied to clipboard
Background color of the top bar to be used when the visual mode is specified as SOLID. Otherwise ignored. Default is "?sbColorPrimary"
Link copied to clipboard
Configuration of the cancel button's appearance.
Link copied to clipboard
Visual mode used for the top bar. Default is SOLID
Link copied to clipboard
Visual mode used for the status bar icons. Default is LIGHT
Link copied to clipboard
Appearance of the top bar's title.