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()
Whether the icon is visible on the button. final Unit
setVisible(Boolean visible)
Whether the icon is visible on the button. final ScanbotColor
getColor()
Icon color. final Unit
setColor(ScanbotColor color)
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()
Whether the icon is visible on the button. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Whether the icon is visible on the button. Default is true
-
getColor
final ScanbotColor getColor()
Icon color. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
Icon color. Default is "#FFFFFF"
-
toJson
final JSONObject toJson()
-
-
-
-