Class CreditCardScanningProgressConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CreditCardScanningProgressConfiguration implements Parcelable
Configuration of visualization of the scanning progress - indeterminate progress.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
enabled
private ScanbotColor
progressColor
private Integer
animationDuration
-
Constructor Summary
Constructors Constructor Description CreditCardScanningProgressConfiguration(Map<String, Object> source)
CreditCardScanningProgressConfiguration(JSONObject json)
CreditCardScanningProgressConfiguration(Boolean enabled, ScanbotColor progressColor, Integer animationDuration)
-
Method Summary
Modifier and Type Method Description final Boolean
getEnabled()
Enable or disable the scanning progress visualization. final Unit
setEnabled(Boolean enabled)
Enable or disable the scanning progress visualization. final ScanbotColor
getProgressColor()
The color of the scanning progress. final Unit
setProgressColor(ScanbotColor progressColor)
The color of the scanning progress. final Integer
getAnimationDuration()
The duration of a single scanning progress cycle animation in milliseconds. final Unit
setAnimationDuration(Integer animationDuration)
The duration of a single scanning progress cycle animation in milliseconds. final JSONObject
toJson(ToJsonConfiguration config)
final CreditCardScanningProgressConfiguration
clone()
final static CreditCardScanningProgressConfiguration
default()
-
-
Constructor Detail
-
CreditCardScanningProgressConfiguration
CreditCardScanningProgressConfiguration(Map<String, Object> source)
-
CreditCardScanningProgressConfiguration
CreditCardScanningProgressConfiguration(JSONObject json)
-
CreditCardScanningProgressConfiguration
CreditCardScanningProgressConfiguration(Boolean enabled, ScanbotColor progressColor, Integer animationDuration)
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Enable or disable the scanning progress visualization.
Default is true
-
setEnabled
final Unit setEnabled(Boolean enabled)
Enable or disable the scanning progress visualization.
Default is true
-
getProgressColor
final ScanbotColor getProgressColor()
The color of the scanning progress.
Default is "#40A9FF"
-
setProgressColor
final Unit setProgressColor(ScanbotColor progressColor)
The color of the scanning progress.
Default is "#40A9FF"
-
getAnimationDuration
final Integer getAnimationDuration()
The duration of a single scanning progress cycle animation in milliseconds.
Default is 1000
-
setAnimationDuration
final Unit setAnimationDuration(Integer animationDuration)
The duration of a single scanning progress cycle animation in milliseconds.
Default is 1000
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final CreditCardScanningProgressConfiguration clone()
-
default
final static CreditCardScanningProgressConfiguration default()
-
-
-
-