ForegroundStyle

data class ForegroundStyle(var iconVisible: Boolean = true, var color: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), var useShadow: Boolean = false)

Configuration of the appearance of foreground elements (e.g. text and/or icons on buttons, etc).

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(iconVisible: Boolean = true, color: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), useShadow: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Color used for foreground elements. Default is "#FFFFFF"

Link copied to clipboard

Whether the icon is visible. Default is true

Link copied to clipboard

Whether to use drop shadows for foreground elements. Default is false

Functions

Link copied to clipboard
fun toJson(): JsonObject