CreditCardScannerIntroScreenConfiguration

data class CreditCardScannerIntroScreenConfiguration(var image: CreditCardScannerIntroImage = CreditCardIntroOneSideImage( ), var backgroundColor: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), var dividerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var handlerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), var showAutomatically: Boolean = false, var title: StyledText = StyledText( text = "?introScreenTitle", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var explanation: StyledText = StyledText( text = "?introScreenText", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), var doneButton: ButtonConfiguration = ButtonConfiguration( text = "?introScreenDoneButton", accessibilityDescription = "?accessibilityDescriptionIntroScreenDoneButton", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("?sbColorPrimary", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( color = ScanbotColor("?sbColorOnPrimary", isArgb = false) ) )) : Parcelable

Configuration of the introduction screen for the credit card scanner.

Constructors

constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(image: CreditCardScannerIntroImage = CreditCardIntroOneSideImage( ), backgroundColor: ScanbotColor = ScanbotColor("?sbColorSurface", isArgb = false), dividerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), handlerColor: ScanbotColor = ScanbotColor("?sbColorOutline", isArgb = false), showAutomatically: Boolean = false, title: StyledText = StyledText( text = "?introScreenTitle", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), explanation: StyledText = StyledText( text = "?introScreenText", color = ScanbotColor("?sbColorOnSurface", isArgb = false) ), doneButton: ButtonConfiguration = ButtonConfiguration( text = "?introScreenDoneButton", accessibilityDescription = "?accessibilityDescriptionIntroScreenDoneButton", background = BackgroundStyle( strokeColor = ScanbotColor("#00000000", isArgb = false), fillColor = ScanbotColor("?sbColorPrimary", isArgb = false), strokeWidth = 0.0 ), foreground = ForegroundStyle( color = ScanbotColor("?sbColorOnPrimary", isArgb = false) ) ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The background color of the introduction screen.

Link copied to clipboard

The divider color of the introduction screen.

Link copied to clipboard

Configuration of the 'Done' / 'Start scanning' button.

Link copied to clipboard

The text explanation of the introduction screen.

Link copied to clipboard

The handle color of the introduction screen.

Link copied to clipboard

The image for the introduction screen.

Link copied to clipboard

Determines whether the introduction screen should automatically be shown or not when the scanning session starts.

Link copied to clipboard

The title of the introduction screen, located in the top bar.

Functions

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