RoundButton

data class RoundButton(var visible: Boolean = true, var accessibilityDescription: String = "", 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 round button.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(visible: Boolean = true, accessibilityDescription: String = "", 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 text to be read when the button is selected through accessibility mode.

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 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