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