Package io.scanbot.sdk.ui_v2.common
Class BackgroundStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BackgroundStyle implements Parcelable
Configuration of the background appearance for buttons and hints.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColorstrokeColorprivate ScanbotColorfillColorprivate DoublestrokeWidth
-
Constructor Summary
Constructors Constructor Description BackgroundStyle(Map<String, Object> source)BackgroundStyle(JSONObject json)BackgroundStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth)
-
Method Summary
Modifier and Type Method Description final ScanbotColorgetStrokeColor()The color of the outline. final UnitsetStrokeColor(ScanbotColor strokeColor)The color of the outline. final ScanbotColorgetFillColor()The fill color. final UnitsetFillColor(ScanbotColor fillColor)The fill color. final DoublegetStrokeWidth()The width of the outline in dp. final UnitsetStrokeWidth(Double strokeWidth)The width of the outline in dp. final JSONObjecttoJson(ToJsonConfiguration config)final BackgroundStyleclone()final static BackgroundStyledefault()-
-
Constructor Detail
-
BackgroundStyle
BackgroundStyle(JSONObject json)
-
BackgroundStyle
BackgroundStyle(ScanbotColor strokeColor, ScanbotColor fillColor, Double strokeWidth)
-
-
Method Detail
-
getStrokeColor
final ScanbotColor getStrokeColor()
The color of the outline.
Default is "#FFFFFFFF"
-
setStrokeColor
final Unit setStrokeColor(ScanbotColor strokeColor)
The color of the outline.
Default is "#FFFFFFFF"
-
getFillColor
final ScanbotColor getFillColor()
The fill color.
Default is "#FFFFFF30"
-
setFillColor
final Unit setFillColor(ScanbotColor fillColor)
The fill color.
Default is "#FFFFFF30"
-
getStrokeWidth
final Double getStrokeWidth()
The width of the outline in dp.
Default is 2.0
-
setStrokeWidth
final Unit setStrokeWidth(Double strokeWidth)
The width of the outline in dp.
Default is 2.0
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final BackgroundStyle clone()
-
default
final static BackgroundStyle default()
-
-
-
-