-
- All Implemented Interfaces:
-
android.os.Parcelable
@Serializable() public final class CardScanConfig implements Parcelable
Configuration done for scanning process, UI customization and callbacks.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringsessionTokenprivate Booleanliveprivate LogLevelloggingprivate BooleanbacksideSupportprivate CardScanMessagesmessagesprivate transient Function0<Unit>onWebViewLoadErrorprivate FloatmessageFontSizeprivate IntegermessageTextColorprivate IntegermessageBackgroundColorprivate IntegerautoSwitchActiveColorprivate IntegerautoSwitchInactiveColorprivate IntegerprogressBarColorprivate IntegerwidgetBackgroundColorprivate InternalOptionsinternal
-
Constructor Summary
Constructors Constructor Description CardScanConfig(String sessionToken, Boolean live, LogLevel logging, Boolean backsideSupport, CardScanMessages messages, Function0<Unit> onWebViewLoadError, Float messageFontSize, Integer messageTextColor, Integer messageBackgroundColor, Integer autoSwitchActiveColor, Integer autoSwitchInactiveColor, Integer progressBarColor, Integer widgetBackgroundColor, InternalOptions internal)
-
Method Summary
Modifier and Type Method Description final StringgetSessionToken()final BooleangetLive()final UnitsetLive(Boolean live)final LogLevelgetLogging()final UnitsetLogging(LogLevel logging)final BooleangetBacksideSupport()final UnitsetBacksideSupport(Boolean backsideSupport)final CardScanMessagesgetMessages()final UnitsetMessages(CardScanMessages messages)final Function0<Unit>getOnWebViewLoadError()final UnitsetOnWebViewLoadError(@Transient() Function0<Unit> onWebViewLoadError)final FloatgetMessageFontSize()final UnitsetMessageFontSize(Float messageFontSize)final IntegergetMessageTextColor()final UnitsetMessageTextColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer messageTextColor)final IntegergetMessageBackgroundColor()final UnitsetMessageBackgroundColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer messageBackgroundColor)final IntegergetAutoSwitchActiveColor()final UnitsetAutoSwitchActiveColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer autoSwitchActiveColor)final IntegergetAutoSwitchInactiveColor()final UnitsetAutoSwitchInactiveColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer autoSwitchInactiveColor)final IntegergetProgressBarColor()final UnitsetProgressBarColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer progressBarColor)final IntegergetWidgetBackgroundColor()final UnitsetWidgetBackgroundColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer widgetBackgroundColor)final InternalOptionsgetInternal()final UnitsetInternal(InternalOptions internal)StringtoString()-
-
Constructor Detail
-
CardScanConfig
CardScanConfig(String sessionToken, Boolean live, LogLevel logging, Boolean backsideSupport, CardScanMessages messages, Function0<Unit> onWebViewLoadError, Float messageFontSize, Integer messageTextColor, Integer messageBackgroundColor, Integer autoSwitchActiveColor, Integer autoSwitchInactiveColor, Integer progressBarColor, Integer widgetBackgroundColor, InternalOptions internal)
-
-
Method Detail
-
getSessionToken
final String getSessionToken()
-
getLogging
final LogLevel getLogging()
-
setLogging
final Unit setLogging(LogLevel logging)
-
getBacksideSupport
final Boolean getBacksideSupport()
-
setBacksideSupport
final Unit setBacksideSupport(Boolean backsideSupport)
-
getMessages
final CardScanMessages getMessages()
-
setMessages
final Unit setMessages(CardScanMessages messages)
-
getOnWebViewLoadError
final Function0<Unit> getOnWebViewLoadError()
-
setOnWebViewLoadError
final Unit setOnWebViewLoadError(@Transient() Function0<Unit> onWebViewLoadError)
-
getMessageFontSize
final Float getMessageFontSize()
-
setMessageFontSize
final Unit setMessageFontSize(Float messageFontSize)
-
getMessageTextColor
final Integer getMessageTextColor()
-
setMessageTextColor
final Unit setMessageTextColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer messageTextColor)
-
getMessageBackgroundColor
final Integer getMessageBackgroundColor()
-
setMessageBackgroundColor
final Unit setMessageBackgroundColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer messageBackgroundColor)
-
getAutoSwitchActiveColor
final Integer getAutoSwitchActiveColor()
-
setAutoSwitchActiveColor
final Unit setAutoSwitchActiveColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer autoSwitchActiveColor)
-
getAutoSwitchInactiveColor
final Integer getAutoSwitchInactiveColor()
-
setAutoSwitchInactiveColor
final Unit setAutoSwitchInactiveColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer autoSwitchInactiveColor)
-
getProgressBarColor
final Integer getProgressBarColor()
-
setProgressBarColor
final Unit setProgressBarColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer progressBarColor)
-
getWidgetBackgroundColor
final Integer getWidgetBackgroundColor()
-
setWidgetBackgroundColor
final Unit setWidgetBackgroundColor(@Serializable(with = IntAsCSSHexSerializer.class) Integer widgetBackgroundColor)
-
getInternal
final InternalOptions getInternal()
-
setInternal
final Unit setInternal(InternalOptions internal)
-
-
-
-