Package io.scanbot.sdk.ui_v2.common
Class FinderStrokedStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class FinderStrokedStyle extends FinderStyle implements Parcelable
Variant of the viewfinder displaying a full outline of the scanning area as user guidance.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private ScanbotColor
strokeColor
private Double
strokeWidth
private Double
cornerRadius
-
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 String
get_type()
final ScanbotColor
getStrokeColor()
Color of the viewfinder's outline. final Unit
setStrokeColor(ScanbotColor strokeColor)
Color of the viewfinder's outline. final Double
getStrokeWidth()
Width of the viewfinder's outline. final Unit
setStrokeWidth(Double strokeWidth)
Width of the viewfinder's outline. final Double
getCornerRadius()
The viewfinder's corner radius. final Unit
setCornerRadius(Double cornerRadius)
The viewfinder's corner radius. JSONObject
toJson()
final static FinderStrokedStyle
default()
-
-
Constructor Detail
-
FinderStrokedStyle
FinderStrokedStyle(JSONObject json)
-
FinderStrokedStyle
FinderStrokedStyle(ScanbotColor strokeColor, Double strokeWidth, Double cornerRadius)
-
-
Method Detail
-
getStrokeColor
final ScanbotColor getStrokeColor()
Color of the viewfinder's outline. Default is "#FFFFFFFF"
-
setStrokeColor
final Unit setStrokeColor(ScanbotColor strokeColor)
Color of the viewfinder's outline. Default is "#FFFFFFFF"
-
getStrokeWidth
final Double getStrokeWidth()
Width of the viewfinder's outline. Default is 3.0
-
setStrokeWidth
final Unit setStrokeWidth(Double strokeWidth)
Width of the viewfinder's outline. Default is 3.0
-
getCornerRadius
final Double getCornerRadius()
The viewfinder's corner radius. Default is 10.0
-
setCornerRadius
final Unit setCornerRadius(Double cornerRadius)
The viewfinder's corner radius. Default is 10.0
-
toJson
JSONObject toJson()
-
default
final static FinderStrokedStyle default()
-
-
-
-