StyledText

data class StyledText(var visible: Boolean = true, var text: String = "", var color: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), var useShadow: Boolean = false)

Configuration of the text field appearance.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Text color. Default is "#FFFFFF"

Link copied to clipboard

Value of the text field. Default is ""

Link copied to clipboard

Whether to enable drop shadows for the text. Default is false

Link copied to clipboard

Whether the text field is visible. Default is true

Functions

Link copied to clipboard
fun toJson(): JsonObject