Package io.scanbot.sdk.ui_v2.common
Class ScanCompletionOverlay
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ScanCompletionOverlay implements Parcelable
Configuration of the overlay to be shown after the successful scan.
-
-
Field Summary
Fields Modifier and Type Field Description private StyledTextmessageprivate ScanbotColoriconColorprivate ScanbotColoroverlayBackgroundColorprivate Integertimeout
-
Constructor Summary
Constructors Constructor Description ScanCompletionOverlay(Map<String, Object> source)ScanCompletionOverlay(JSONObject json)ScanCompletionOverlay(StyledText message, ScanbotColor iconColor, ScanbotColor overlayBackgroundColor, Integer timeout)
-
Method Summary
Modifier and Type Method Description final StyledTextgetMessage()A caption below the icon. final UnitsetMessage(StyledText message)A caption below the icon. final ScanbotColorgetIconColor()Color of the icon. final UnitsetIconColor(ScanbotColor iconColor)Color of the icon. final ScanbotColorgetOverlayBackgroundColor()Background color of the overlay. final UnitsetOverlayBackgroundColor(ScanbotColor overlayBackgroundColor)Background color of the overlay. final IntegergetTimeout()Timeout in milliseconds after which the overlay is automatically dismissed. final UnitsetTimeout(Integer timeout)Timeout in milliseconds after which the overlay is automatically dismissed. final JSONObjecttoJson(ToJsonConfiguration config)final ScanCompletionOverlayclone()final static ScanCompletionOverlaydefault()-
-
Constructor Detail
-
ScanCompletionOverlay
ScanCompletionOverlay(JSONObject json)
-
ScanCompletionOverlay
ScanCompletionOverlay(StyledText message, ScanbotColor iconColor, ScanbotColor overlayBackgroundColor, Integer timeout)
-
-
Method Detail
-
getMessage
final StyledText getMessage()
A caption below the icon.
-
setMessage
final Unit setMessage(StyledText message)
A caption below the icon.
-
getIconColor
final ScanbotColor getIconColor()
Color of the icon.
Default is "?sbColorOnPrimary"
-
setIconColor
final Unit setIconColor(ScanbotColor iconColor)
Color of the icon.
Default is "?sbColorOnPrimary"
-
getOverlayBackgroundColor
final ScanbotColor getOverlayBackgroundColor()
Background color of the overlay.
Default is "?sbColorSurfaceHigh"
-
setOverlayBackgroundColor
final Unit setOverlayBackgroundColor(ScanbotColor overlayBackgroundColor)
Background color of the overlay.
Default is "?sbColorSurfaceHigh"
-
getTimeout
final Integer getTimeout()
Timeout in milliseconds after which the overlay is automatically dismissed.
Default is 1000
-
setTimeout
final Unit setTimeout(Integer timeout)
Timeout in milliseconds after which the overlay is automatically dismissed.
Default is 1000
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ScanCompletionOverlay clone()
-
default
final static ScanCompletionOverlay default()
-
-
-
-