ScanbotAlertDialog

data class ScanbotAlertDialog(var title: StyledText = StyledText( text = "Title", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var subtitle: StyledText = StyledText( text = "Standard explanation message text.", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), var sheetColor: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), var modalOverlayColor: ScanbotColor = ScanbotColor("?sbColorModalOverlay", isArgb = false), var dividerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var okButton: ButtonConfiguration = ButtonConfiguration( background = BackgroundStyle( fillColor = ScanbotColor("?sbColorPrimary", isArgb = false) ) ), var actionButton: ButtonConfiguration = ButtonConfiguration( visible = false, background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ) ), var cancelButton: ButtonConfiguration = ButtonConfiguration( visible = true, background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ) )) : Parcelable

Configuration of the standard alert dialog.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(title: StyledText = StyledText( text = "Title", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), subtitle: StyledText = StyledText( text = "Standard explanation message text.", color = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false) ), sheetColor: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), modalOverlayColor: ScanbotColor = ScanbotColor("?sbColorModalOverlay", isArgb = false), dividerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), okButton: ButtonConfiguration = ButtonConfiguration( background = BackgroundStyle( fillColor = ScanbotColor("?sbColorPrimary", isArgb = false) ) ), actionButton: ButtonConfiguration = ButtonConfiguration( visible = false, background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ) ), cancelButton: ButtonConfiguration = ButtonConfiguration( visible = true, background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 0.0 ) ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Configuration of the middle button for dialogs with tree buttons.

Link copied to clipboard

Configuration of the 'cancel' button.

Link copied to clipboard

The color of the divider line.

Link copied to clipboard

The dialog overlay color.

Link copied to clipboard

Configuration of the 'OK' button.

Link copied to clipboard

The background color of the alert dialog.

Link copied to clipboard

The explanation message.

Link copied to clipboard

The title displayed above the message.

Functions

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