Package io.scanbot.sdk.ui_v2.common
Class FinderCorneredStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class FinderCorneredStyle extends FinderStyle implements Parcelable
A variant of the viewfinder displaying only the four corners of the scanning area.
-
-
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 FinderCorneredStyle(Map<String, Object> source)
FinderCorneredStyle(JSONObject json)
FinderCorneredStyle(ScanbotColor strokeColor, Double strokeWidth, Double cornerRadius)
-
Method Summary
Modifier and Type Method Description String
get_type()
final ScanbotColor
getStrokeColor()
The color of the viewfinder corner's outlines. final Unit
setStrokeColor(ScanbotColor strokeColor)
The color of the viewfinder corner's outlines. final Double
getStrokeWidth()
The width of the viewfinder corner's outlines. final Unit
setStrokeWidth(Double strokeWidth)
The width of the viewfinder corner's outlines. final Double
getCornerRadius()
The radius of the viewfinder's corners. final Unit
setCornerRadius(Double cornerRadius)
The radius of the viewfinder's corners. JSONObject
toJson()
final static FinderCorneredStyle
default()
-
-
Constructor Detail
-
FinderCorneredStyle
FinderCorneredStyle(JSONObject json)
-
FinderCorneredStyle
FinderCorneredStyle(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()
-
default
final static FinderCorneredStyle default()
-
-
-
-