-
- 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 Booleandebugprivate transient Function1<ScannedCard, Unit>onSuccessprivate transient Function0<Unit>onCancelprivate transient Function1<CardError, Unit>onErrorprivate transient Function0<Unit>onRetryprivate BooleanbacksideSupportprivate CardScanMessagesmessagesprivate transient Function0<Unit>onWebViewLoadErrorprivate FloatmessageFontSizeprivate IntegermessageTextColorprivate IntegermessageBackgroundColorprivate IntegerautoSwitchActiveColorprivate IntegerautoSwitchInactiveColorprivate IntegerprogressBarColorprivate IntegerwidgetBackgroundColorprivate StringlogTag
-
Constructor Summary
Constructors Constructor Description CardScanConfig(String sessionToken, Boolean live, Boolean debug, Function1<ScannedCard, Unit> onSuccess, Function0<Unit> onCancel, Function1<CardError, Unit> onError, Function0<Unit> onRetry, Boolean backsideSupport, CardScanMessages messages, Function0<Unit> onWebViewLoadError, Float messageFontSize, Integer messageTextColor, Integer messageBackgroundColor, Integer autoSwitchActiveColor, Integer autoSwitchInactiveColor, Integer progressBarColor, Integer widgetBackgroundColor, String logTag)
-
Method Summary
Modifier and Type Method Description final StringgetSessionToken()final BooleangetLive()final UnitsetLive(Boolean live)final BooleangetDebug()final UnitsetDebug(Boolean debug)final Function1<ScannedCard, Unit>getOnSuccess()final UnitsetOnSuccess(@Transient() Function1<ScannedCard, Unit> onSuccess)final Function0<Unit>getOnCancel()final UnitsetOnCancel(@Transient() Function0<Unit> onCancel)final Function1<CardError, Unit>getOnError()final UnitsetOnError(@Transient() Function1<CardError, Unit> onError)final Function0<Unit>getOnRetry()final UnitsetOnRetry(@Transient() Function0<Unit> onRetry)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 StringgetLogTag()final UnitsetLogTag(String logTag)StringtoString()-
-
Constructor Detail
-
CardScanConfig
CardScanConfig(String sessionToken, Boolean live, Boolean debug, Function1<ScannedCard, Unit> onSuccess, Function0<Unit> onCancel, Function1<CardError, Unit> onError, Function0<Unit> onRetry, Boolean backsideSupport, CardScanMessages messages, Function0<Unit> onWebViewLoadError, Float messageFontSize, Integer messageTextColor, Integer messageBackgroundColor, Integer autoSwitchActiveColor, Integer autoSwitchInactiveColor, Integer progressBarColor, Integer widgetBackgroundColor, String logTag)
-
-
Method Detail
-
getSessionToken
final String getSessionToken()
-
getOnSuccess
final Function1<ScannedCard, Unit> getOnSuccess()
-
setOnSuccess
final Unit setOnSuccess(@Transient() Function1<ScannedCard, Unit> onSuccess)
-
getOnCancel
final Function0<Unit> getOnCancel()
-
setOnCancel
final Unit setOnCancel(@Transient() Function0<Unit> onCancel)
-
getOnError
final Function1<CardError, Unit> getOnError()
-
setOnError
final Unit setOnError(@Transient() Function1<CardError, Unit> onError)
-
getOnRetry
final Function0<Unit> getOnRetry()
-
setOnRetry
final Unit setOnRetry(@Transient() Function0<Unit> onRetry)
-
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)
-
-
-
-