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 BooleanresultWithConfirmationEnabledprivate Stringtitleprivate Stringmessageprivate StringconfirmButtonTitleprivate StringretryButtonTitleprivate IntegerbuttonsAccentColorprivate BooleanisConfirmButtonFilledprivate IntegerfilledConfirmButtonTextColorprivate BarcodeDialogFormatdialogTextFormat
-
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 BooleangetResultWithConfirmationEnabled()Defines, if the confirmation dialog should be displayed or not before returning the barcode scanning results. final UnitsetResultWithConfirmationEnabled(Boolean resultWithConfirmationEnabled)Defines, if the confirmation dialog should be displayed or not before returning the barcode scanning results. final StringgetTitle()Confirmation dialog title. final UnitsetTitle(String title)Confirmation dialog title. final StringgetMessage()Confirmation dialog message. final UnitsetMessage(String message)Confirmation dialog message. final StringgetConfirmButtonTitle()Confirmation dialog confirm button text. final UnitsetConfirmButtonTitle(String confirmButtonTitle)Confirmation dialog confirm button text. final StringgetRetryButtonTitle()Confirmation dialog retry button text. final UnitsetRetryButtonTitle(String retryButtonTitle)Confirmation dialog retry button text. final IntegergetButtonsAccentColor()The accent color of buttons on a confirmation dialog. final UnitsetButtonsAccentColor(Integer buttonsAccentColor)The accent color of buttons on a confirmation dialog. final BooleanisConfirmButtonFilled()Allows to set if the confirm button should be filled. final UnitsetConfirmButtonFilled(Boolean isConfirmButtonFilled)Allows to set if the confirm button should be filled. final IntegergetFilledConfirmButtonTextColor()The text color of the confirm button if it is filled. final UnitsetFilledConfirmButtonTextColor(Integer filledConfirmButtonTextColor)The text color of the confirm button if it is filled. final BarcodeDialogFormatgetDialogTextFormat()The text format of the result dialog. final UnitsetDialogTextFormat(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.
-
-
-
-