Package io.scanbot.sdk.ui_v2.common
Class FinderStrokedStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class FinderStrokedStyle extends FinderStyle implements Parcelable
A variant of the viewfinder displaying a full outline of the scanning area.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_typeprivate ScanbotColorstrokeColorprivate DoublestrokeWidthprivate DoublecornerRadius
-
Constructor Summary
Constructors Constructor Description FinderStrokedStyle(Map<String, Object> source)FinderStrokedStyle(JSONObject json)FinderStrokedStyle(ScanbotColor strokeColor, Double strokeWidth, Double cornerRadius)
-
Method Summary
Modifier and Type Method Description Stringget_type()final ScanbotColorgetStrokeColor()The color of the viewfinder corner's outlines. final UnitsetStrokeColor(ScanbotColor strokeColor)The color of the viewfinder corner's outlines. final DoublegetStrokeWidth()The width of the viewfinder corner's outlines. final UnitsetStrokeWidth(Double strokeWidth)The width of the viewfinder corner's outlines. final DoublegetCornerRadius()The radius of the viewfinder's corners. final UnitsetCornerRadius(Double cornerRadius)The radius of the viewfinder's corners. JSONObjecttoJson(ToJsonConfiguration config)FinderStrokedStyleclone()final static FinderStrokedStyledefault()-
-
Constructor Detail
-
FinderStrokedStyle
FinderStrokedStyle(JSONObject json)
-
FinderStrokedStyle
FinderStrokedStyle(ScanbotColor strokeColor, Double strokeWidth, Double cornerRadius)
-
-
Method Detail
-
getStrokeColor
final ScanbotColor getStrokeColor()
The color of the viewfinder corner's outlines.
Default is "#FFFFFFFF"
-
setStrokeColor
final Unit setStrokeColor(ScanbotColor strokeColor)
The color of the viewfinder corner's outlines.
Default is "#FFFFFFFF"
-
getStrokeWidth
final Double getStrokeWidth()
The width of the viewfinder corner's outlines.
Default is 3.0
-
setStrokeWidth
final Unit setStrokeWidth(Double strokeWidth)
The width of the viewfinder corner's outlines.
Default is 3.0
-
getCornerRadius
final Double getCornerRadius()
The radius of the viewfinder's corners.
Default is 10.0
-
setCornerRadius
final Unit setCornerRadius(Double cornerRadius)
The radius of the viewfinder's corners.
Default is 10.0
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
FinderStrokedStyle clone()
-
default
final static FinderStrokedStyle default()
-
-
-
-