Class BarcodeConfirmationDialogConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
public final class BarcodeConfirmationDialogConfiguration implements Parcelable, Serializable
Provides the configuration for confirmation dialog for the barcode scanning process
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
resultWithConfirmationEnabled
private String
title
private String
message
private String
confirmButtonTitle
private String
retryButtonTitle
private Integer
buttonsAccentColor
private Boolean
isConfirmButtonFilled
private Integer
filledConfirmButtonTextColor
private BarcodeDialogFormat
dialogTextFormat
-
Constructor Summary
Constructors Constructor Description BarcodeConfirmationDialogConfiguration(Boolean resultWithConfirmationEnabled, String title, String message, String confirmButtonTitle, String retryButtonTitle, Integer buttonsAccentColor, Boolean isConfirmButtonFilled, Integer filledConfirmButtonTextColor, BarcodeDialogFormat dialogTextFormat)
-
Method Summary
Modifier and Type Method Description final Boolean
getResultWithConfirmationEnabled()
Defines, if the confirmation dialog should be displayed or not before returning the barcode scanning results. final Unit
setResultWithConfirmationEnabled(Boolean resultWithConfirmationEnabled)
Defines, if the confirmation dialog should be displayed or not before returning the barcode scanning results. final String
getTitle()
Confirmation dialog title. final Unit
setTitle(String title)
Confirmation dialog title. final String
getMessage()
Confirmation dialog message. final Unit
setMessage(String message)
Confirmation dialog message. final String
getConfirmButtonTitle()
Confirmation dialog confirm button text. final Unit
setConfirmButtonTitle(String confirmButtonTitle)
Confirmation dialog confirm button text. final String
getRetryButtonTitle()
Confirmation dialog retry button text. final Unit
setRetryButtonTitle(String retryButtonTitle)
Confirmation dialog retry button text. final Integer
getButtonsAccentColor()
The accent color of buttons on a confirmation dialog. final Unit
setButtonsAccentColor(Integer buttonsAccentColor)
The accent color of buttons on a confirmation dialog. final Boolean
isConfirmButtonFilled()
Allows to set if the confirm button should be filled. final Unit
setConfirmButtonFilled(Boolean isConfirmButtonFilled)
Allows to set if the confirm button should be filled. final Integer
getFilledConfirmButtonTextColor()
The text color of the confirm button if it is filled. final Unit
setFilledConfirmButtonTextColor(Integer filledConfirmButtonTextColor)
The text color of the confirm button if it is filled. final BarcodeDialogFormat
getDialogTextFormat()
The text format of the result dialog. final Unit
setDialogTextFormat(BarcodeDialogFormat dialogTextFormat)
The text format of the result dialog. -
-
Constructor Detail
-
BarcodeConfirmationDialogConfiguration
BarcodeConfirmationDialogConfiguration(Boolean resultWithConfirmationEnabled, String title, String message, String confirmButtonTitle, String retryButtonTitle, Integer buttonsAccentColor, Boolean isConfirmButtonFilled, Integer filledConfirmButtonTextColor, BarcodeDialogFormat dialogTextFormat)
-
-
Method Detail
-
getResultWithConfirmationEnabled
final Boolean getResultWithConfirmationEnabled()
Defines, if the confirmation dialog should be displayed or not before returning the barcode scanning results. Defaults to False.
-
setResultWithConfirmationEnabled
final Unit setResultWithConfirmationEnabled(Boolean resultWithConfirmationEnabled)
Defines, if the confirmation dialog should be displayed or not before returning the barcode scanning results. Defaults to False.
-
getTitle
final String getTitle()
Confirmation dialog title. If not set, the default title will be used.
-
setTitle
final Unit setTitle(String title)
Confirmation dialog title. If not set, the default title will be used.
-
getMessage
final String getMessage()
Confirmation dialog message. If not set, the default title will be used.
-
setMessage
final Unit setMessage(String message)
Confirmation dialog message. If not set, the default title will be used.
-
getConfirmButtonTitle
final String getConfirmButtonTitle()
Confirmation dialog confirm button text. If not set, the default title will be used.
-
setConfirmButtonTitle
final Unit setConfirmButtonTitle(String confirmButtonTitle)
Confirmation dialog confirm button text. If not set, the default title will be used.
-
getRetryButtonTitle
final String getRetryButtonTitle()
Confirmation dialog retry button text. If not set, the default title will be used.
-
setRetryButtonTitle
final Unit setRetryButtonTitle(String retryButtonTitle)
Confirmation dialog retry button text. If not set, the default title will be used.
-
getButtonsAccentColor
final Integer getButtonsAccentColor()
The accent color of buttons on a confirmation dialog. If not set, the default color will be used.
-
setButtonsAccentColor
final Unit setButtonsAccentColor(Integer buttonsAccentColor)
The accent color of buttons on a confirmation dialog. If not set, the default color will be used.
-
isConfirmButtonFilled
final Boolean isConfirmButtonFilled()
Allows to set if the confirm button should be filled. If not set, the default value will be used.
-
setConfirmButtonFilled
final Unit setConfirmButtonFilled(Boolean isConfirmButtonFilled)
Allows to set if the confirm button should be filled. If not set, the default value will be used.
-
getFilledConfirmButtonTextColor
final Integer getFilledConfirmButtonTextColor()
The text color of the confirm button if it is filled. If not set, the default color will be used.
-
setFilledConfirmButtonTextColor
final Unit setFilledConfirmButtonTextColor(Integer filledConfirmButtonTextColor)
The text color of the confirm button if it is filled. If not set, the default color will be used.
-
getDialogTextFormat
final BarcodeDialogFormat getDialogTextFormat()
The text format of the result dialog. Defaults to BarcodeDialogFormat.TYPE_AND_CODE.
-
setDialogTextFormat
final Unit setDialogTextFormat(BarcodeDialogFormat dialogTextFormat)
The text format of the result dialog. Defaults to BarcodeDialogFormat.TYPE_AND_CODE.
-
-
-
-