Package io.scanbot.sdk.ui_v2.common
Class ForegroundStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ForegroundStyle implements Parcelable
Configuration of the appearance of foreground elements (e.g. text and/or icons on buttons, etc).
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
iconVisible
private ScanbotColor
color
private Boolean
useShadow
-
Constructor Summary
Constructors Constructor Description ForegroundStyle(Map<String, Object> source)
ForegroundStyle(JSONObject json)
ForegroundStyle(Boolean iconVisible, ScanbotColor color, Boolean useShadow)
-
Method Summary
Modifier and Type Method Description final Boolean
getIconVisible()
Whether the icon is visible. final Unit
setIconVisible(Boolean iconVisible)
Whether the icon is visible. final ScanbotColor
getColor()
Color used for foreground elements. final Unit
setColor(ScanbotColor color)
Color used for foreground elements. final Boolean
getUseShadow()
Whether to use drop shadows for foreground elements. final Unit
setUseShadow(Boolean useShadow)
Whether to use drop shadows for foreground elements. final JSONObject
toJson()
final static ForegroundStyle
default()
-
-
Constructor Detail
-
ForegroundStyle
ForegroundStyle(JSONObject json)
-
ForegroundStyle
ForegroundStyle(Boolean iconVisible, ScanbotColor color, Boolean useShadow)
-
-
Method Detail
-
getIconVisible
final Boolean getIconVisible()
Whether the icon is visible. Default is true
-
setIconVisible
final Unit setIconVisible(Boolean iconVisible)
Whether the icon is visible. Default is true
-
getColor
final ScanbotColor getColor()
Color used for foreground elements. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
Color used for foreground elements. Default is "#FFFFFF"
-
getUseShadow
final Boolean getUseShadow()
Whether to use drop shadows for foreground elements. Default is false
-
setUseShadow
final Unit setUseShadow(Boolean useShadow)
Whether to use drop shadows for foreground elements. Default is false
-
toJson
final JSONObject toJson()
-
default
final static ForegroundStyle default()
-
-
-
-