Package io.scanbot.sdk.ui_v2.common
Class PermanentViewFinderConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PermanentViewFinderConfiguration extends BaseViewFinderConfiguration implements Parcelable
Configuration of the scanning interface’s viewfinder, which is always visible to guide the user.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private FinderStyle
style
private ScanbotColor
overlayColor
private AspectRatio
aspectRatio
private EdgeInsets
minimumInsets
private Double
preferredHeight
-
Constructor Summary
Constructors Constructor Description PermanentViewFinderConfiguration(Map<String, Object> source)
PermanentViewFinderConfiguration(JSONObject json)
PermanentViewFinderConfiguration(FinderStyle style, ScanbotColor overlayColor, AspectRatio aspectRatio, EdgeInsets minimumInsets, Double preferredHeight)
-
Method Summary
Modifier and Type Method Description String
get_type()
FinderStyle
getStyle()
The visual appearance of the viewfinder. Unit
setStyle(FinderStyle style)
The visual appearance of the viewfinder. ScanbotColor
getOverlayColor()
The color of the viewfinder overlay. Unit
setOverlayColor(ScanbotColor overlayColor)
The color of the viewfinder overlay. AspectRatio
getAspectRatio()
The viewfinder's aspect ratio. Unit
setAspectRatio(AspectRatio aspectRatio)
The viewfinder's aspect ratio. EdgeInsets
getMinimumInsets()
The minimum insets of the viewfinder. Unit
setMinimumInsets(EdgeInsets minimumInsets)
The minimum insets of the viewfinder. Double
getPreferredHeight()
The preferred height of the viewfinder. Unit
setPreferredHeight(Double preferredHeight)
The preferred height of the viewfinder. JSONObject
toJson(ToJsonConfiguration config)
PermanentViewFinderConfiguration
clone()
final static PermanentViewFinderConfiguration
default()
-
-
-
Constructor Detail
-
PermanentViewFinderConfiguration
PermanentViewFinderConfiguration(JSONObject json)
-
PermanentViewFinderConfiguration
PermanentViewFinderConfiguration(FinderStyle style, ScanbotColor overlayColor, AspectRatio aspectRatio, EdgeInsets minimumInsets, Double preferredHeight)
-
-
Method Detail
-
getStyle
FinderStyle getStyle()
The visual appearance of the viewfinder.
-
setStyle
Unit setStyle(FinderStyle style)
The visual appearance of the viewfinder.
-
getOverlayColor
ScanbotColor getOverlayColor()
The color of the viewfinder overlay.
Default is "?sbColorSurfaceLow"
-
setOverlayColor
Unit setOverlayColor(ScanbotColor overlayColor)
The color of the viewfinder overlay.
Default is "?sbColorSurfaceLow"
-
getAspectRatio
AspectRatio getAspectRatio()
The viewfinder's aspect ratio.
-
setAspectRatio
Unit setAspectRatio(AspectRatio aspectRatio)
The viewfinder's aspect ratio.
-
getMinimumInsets
EdgeInsets getMinimumInsets()
The minimum insets of the viewfinder.
-
setMinimumInsets
Unit setMinimumInsets(EdgeInsets minimumInsets)
The minimum insets of the viewfinder.
-
getPreferredHeight
Double getPreferredHeight()
The preferred height of the viewfinder.
Default is -1.0
-
setPreferredHeight
Unit setPreferredHeight(Double preferredHeight)
The preferred height of the viewfinder.
Default is -1.0
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
default
final static PermanentViewFinderConfiguration default()
-
-