BadgeStyle

data class BadgeStyle(var visible: Boolean = true, var background: BackgroundStyle = BackgroundStyle( ), var foregroundColor: ScanbotColor = ScanbotColor("?sbColorOnSurface", isArgb = false)) : Parcelable

Configuration of the badge.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(visible: Boolean = true, background: BackgroundStyle = BackgroundStyle( ), foregroundColor: ScanbotColor = ScanbotColor("?sbColorOnSurface", isArgb = false))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Configuration of the background appearance for the badge.

Link copied to clipboard

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

Link copied to clipboard

Determines whether the badge is visible or not.

Functions

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