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()
Title displayed above the message. final Unit
setTitle(StyledText title)
Title displayed above the message. final StyledText
getSubtitle()
Explanation message message. final Unit
setSubtitle(StyledText subtitle)
Explanation message message. final ScanbotColor
getSheetColor()
Background color of the alert dialog. final Unit
setSheetColor(ScanbotColor sheetColor)
Background color of the alert dialog. final ScanbotColor
getModalOverlayColor()
Dialog overlay color. final Unit
setModalOverlayColor(ScanbotColor modalOverlayColor)
Dialog overlay color. final ScanbotColor
getDividerColor()
Color of the divider line. final Unit
setDividerColor(ScanbotColor dividerColor)
Color of the divider line. final ButtonConfiguration
getOkButton()
Configuration of the retry button. final Unit
setOkButton(ButtonConfiguration okButton)
Configuration of the retry 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()
Title displayed above the message.
-
setTitle
final Unit setTitle(StyledText title)
Title displayed above the message.
-
getSubtitle
final StyledText getSubtitle()
Explanation message message.
-
setSubtitle
final Unit setSubtitle(StyledText subtitle)
Explanation message message.
-
getSheetColor
final ScanbotColor getSheetColor()
Background color of the alert dialog. Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
Background color of the alert dialog. Default is "?sbColorSurface"
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
Dialog overlay color. Default is "?sbColorModalOverlay"
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
Dialog overlay color. Default is "?sbColorModalOverlay"
-
getDividerColor
final ScanbotColor getDividerColor()
Color of the divider line. Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
Color of the divider line. Default is "?sbColorOutline"
-
getOkButton
final ButtonConfiguration getOkButton()
Configuration of the retry button.
-
setOkButton
final Unit setOkButton(ButtonConfiguration okButton)
Configuration of the retry 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()
-
-
-
-