Package io.scanbot.sdk.ui_v2.common
Class IconStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class IconStyle implements Parcelable
Configuration of the icon appearance.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
visible
private ScanbotColor
color
-
Constructor Summary
Constructors Constructor Description IconStyle(Map<String, Object> source)
IconStyle(JSONObject json)
IconStyle(Boolean visible, ScanbotColor color)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Determines whether the icon is visible or not. final Unit
setVisible(Boolean visible)
Determines whether the icon is visible or not. final ScanbotColor
getColor()
The icon color. final Unit
setColor(ScanbotColor color)
The icon color. final JSONObject
toJson()
final static IconStyle
default()
-
-
Constructor Detail
-
IconStyle
IconStyle(JSONObject json)
-
IconStyle
IconStyle(Boolean visible, ScanbotColor color)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Determines whether the icon is visible or not. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the icon is visible or not. Default is true
-
getColor
final ScanbotColor getColor()
The icon color. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
The icon color. Default is "#FFFFFF"
-
toJson
final JSONObject toJson()
-
-
-
-