BadgedButton

data class BadgedButton(var badgeBackgroundColor: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), var badgeForegroundColor: ScanbotColor = ScanbotColor("#C8193C", isArgb = false), var visible: Boolean = true, var backgroundColor: ScanbotColor = ScanbotColor("#0000007A", isArgb = false), var foregroundColor: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), var activeBackgroundColor: ScanbotColor = ScanbotColor("#FFCE5C", isArgb = false), var activeForegroundColor: ScanbotColor = ScanbotColor("#1C1B1F", isArgb = false)) : Parcelable

Configuration of the button with a badge.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(badgeBackgroundColor: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), badgeForegroundColor: ScanbotColor = ScanbotColor("#C8193C", isArgb = false), visible: Boolean = true, backgroundColor: ScanbotColor = ScanbotColor("#0000007A", isArgb = false), foregroundColor: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), activeBackgroundColor: ScanbotColor = ScanbotColor("#FFCE5C", isArgb = false), activeForegroundColor: ScanbotColor = ScanbotColor("#1C1B1F", isArgb = false))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The color of the button's background when the button is active (selected, toggled).

Link copied to clipboard

The color of the button's foreground (icon, text) when the button is active (selected, toggled).

Link copied to clipboard

The color of the button's background.

Link copied to clipboard

The color of the badge's background.

Link copied to clipboard

The color of the badge's foreground (icon, text).

Link copied to clipboard

The color of the button's foreground (icon, text).

Link copied to clipboard

Determines whether the button is visible or not.

Functions

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