Class ScanAssistanceOverlay
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ScanAssistanceOverlay implements Parcelable
Configuration of the scan assistance overlay.
-
-
Field Summary
Fields Modifier and Type Field Description private Booleanvisibleprivate ScanbotColorbackgroundColorprivate ScanbotColorforegroundColor
-
Constructor Summary
Constructors Constructor Description ScanAssistanceOverlay(Map<String, Object> source)ScanAssistanceOverlay(JSONObject json)ScanAssistanceOverlay(Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor)
-
Method Summary
Modifier and Type Method Description final BooleangetVisible()Determines whether the scan assistance overlay is visible or not. final UnitsetVisible(Boolean visible)Determines whether the scan assistance overlay is visible or not. final ScanbotColorgetBackgroundColor()The background color of the scan assistance overlay. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the scan assistance overlay. final ScanbotColorgetForegroundColor()The foreground color of the scan assistance overlay image. final UnitsetForegroundColor(ScanbotColor foregroundColor)The foreground color of the scan assistance overlay image. final JSONObjecttoJson(ToJsonConfiguration config)final ScanAssistanceOverlayclone()final static ScanAssistanceOverlaydefault()-
-
Constructor Detail
-
ScanAssistanceOverlay
ScanAssistanceOverlay(JSONObject json)
-
ScanAssistanceOverlay
ScanAssistanceOverlay(Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Determines whether the scan assistance overlay is visible or not. If the viewfinder is enabled, this flag is ignored and the scan assistance overlay is not displayed.
Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the scan assistance overlay is visible or not. If the viewfinder is enabled, this flag is ignored and the scan assistance overlay is not displayed.
Default is true
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The background color of the scan assistance overlay.
Default is "?sbColorModalOverlay"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the scan assistance overlay.
Default is "?sbColorModalOverlay"
-
getForegroundColor
final ScanbotColor getForegroundColor()
The foreground color of the scan assistance overlay image.
Default is "?sbColorSurface"
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
The foreground color of the scan assistance overlay image.
Default is "?sbColorSurface"
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ScanAssistanceOverlay clone()
-
default
final static ScanAssistanceOverlay default()
-
-
-
-