ButtonConfiguration

data class ButtonConfiguration(var visible: Boolean = true, var text: String = "", var accessibilityDescription: String = "", var background: BackgroundStyle = BackgroundStyle( ), var foreground: ForegroundStyle = ForegroundStyle( )) : Parcelable

Configuration of the button.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(visible: Boolean = true, text: String = "", accessibilityDescription: String = "", background: BackgroundStyle = BackgroundStyle( ), foreground: ForegroundStyle = ForegroundStyle( ))

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

Configuration of the background appearance for the button.

Link copied to clipboard

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

Link copied to clipboard

The text to be displayed on the button.

Link copied to clipboard

Determines whether the button is visible or not.

Functions

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