Class ScanbotAlertDialog
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ScanbotAlertDialog implements Parcelable
Configuration of the the standard alert dialog.
-
-
Field Summary
Fields Modifier and Type Field Description private StyledText
title
private StyledText
subtitle
private ScanbotColor
sheetColor
private ScanbotColor
modalOverlayColor
private ScanbotColor
dividerColor
private ButtonConfiguration
okButton
private ButtonConfiguration
actionButton
private ButtonConfiguration
cancelButton
-
Constructor Summary
Constructors Constructor Description ScanbotAlertDialog(Map<String, Object> source)
ScanbotAlertDialog(JSONObject json)
ScanbotAlertDialog(StyledText title, StyledText subtitle, ScanbotColor sheetColor, ScanbotColor modalOverlayColor, ScanbotColor dividerColor, ButtonConfiguration okButton, ButtonConfiguration actionButton, ButtonConfiguration cancelButton)
-
Method Summary
Modifier and Type Method Description final StyledText
getTitle()
The title displayed above the message. final Unit
setTitle(StyledText title)
The title displayed above the message. final StyledText
getSubtitle()
The explanation message. final Unit
setSubtitle(StyledText subtitle)
The explanation message. final ScanbotColor
getSheetColor()
The background color of the alert dialog. final Unit
setSheetColor(ScanbotColor sheetColor)
The background color of the alert dialog. final ScanbotColor
getModalOverlayColor()
The dialog overlay color. final Unit
setModalOverlayColor(ScanbotColor modalOverlayColor)
The dialog overlay color. final ScanbotColor
getDividerColor()
The color of the divider line. final Unit
setDividerColor(ScanbotColor dividerColor)
The color of the divider line. final ButtonConfiguration
getOkButton()
Configuration of the 'OK' button. final Unit
setOkButton(ButtonConfiguration okButton)
Configuration of the 'OK' button. final ButtonConfiguration
getActionButton()
Configuration of the middle button for dialogs with tree buttons. final Unit
setActionButton(ButtonConfiguration actionButton)
Configuration of the middle button for dialogs with tree buttons. final ButtonConfiguration
getCancelButton()
Configuration of the 'cancel' button. final Unit
setCancelButton(ButtonConfiguration cancelButton)
Configuration of the 'cancel' button. final JSONObject
toJson()
final static ScanbotAlertDialog
default()
-
-
Constructor Detail
-
ScanbotAlertDialog
ScanbotAlertDialog(JSONObject json)
-
ScanbotAlertDialog
ScanbotAlertDialog(StyledText title, StyledText subtitle, ScanbotColor sheetColor, ScanbotColor modalOverlayColor, ScanbotColor dividerColor, ButtonConfiguration okButton, ButtonConfiguration actionButton, ButtonConfiguration cancelButton)
-
-
Method Detail
-
getTitle
final StyledText getTitle()
The title displayed above the message.
-
setTitle
final Unit setTitle(StyledText title)
The title displayed above the message.
-
getSubtitle
final StyledText getSubtitle()
The explanation message.
-
setSubtitle
final Unit setSubtitle(StyledText subtitle)
The explanation message.
-
getSheetColor
final ScanbotColor getSheetColor()
The background color of the alert dialog. Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
The background color of the alert dialog. Default is "?sbColorSurface"
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
The dialog overlay color. Default is "?sbColorModalOverlay"
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
The dialog overlay color. Default is "?sbColorModalOverlay"
-
getDividerColor
final ScanbotColor getDividerColor()
The color of the divider line. Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
The color of the divider line. Default is "?sbColorOutline"
-
getOkButton
final ButtonConfiguration getOkButton()
Configuration of the 'OK' button.
-
setOkButton
final Unit setOkButton(ButtonConfiguration okButton)
Configuration of the 'OK' button.
-
getActionButton
final ButtonConfiguration getActionButton()
Configuration of the middle button for dialogs with tree buttons.
-
setActionButton
final Unit setActionButton(ButtonConfiguration actionButton)
Configuration of the middle button for dialogs with tree buttons.
-
getCancelButton
final ButtonConfiguration getCancelButton()
Configuration of the 'cancel' button.
-
setCancelButton
final Unit setCancelButton(ButtonConfiguration cancelButton)
Configuration of the 'cancel' button.
-
toJson
final JSONObject toJson()
-
default
final static ScanbotAlertDialog default()
-
-
-
-