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 for foreground elements (e.g. text and/or icons, 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()
Determines whether the icon is visible or not. final Unit
setIconVisible(Boolean iconVisible)
Determines whether the icon is visible or not. final ScanbotColor
getColor()
The color used for foreground elements. final Unit
setColor(ScanbotColor color)
The color used for foreground elements. final Boolean
getUseShadow()
Determines whether to use drop shadows for foreground elements. final Unit
setUseShadow(Boolean useShadow)
Determines 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()
Determines whether the icon is visible or not. Default is true
-
setIconVisible
final Unit setIconVisible(Boolean iconVisible)
Determines whether the icon is visible or not. Default is true
-
getColor
final ScanbotColor getColor()
The color used for foreground elements. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
The color used for foreground elements. Default is "#FFFFFF"
-
getUseShadow
final Boolean getUseShadow()
Determines whether to use drop shadows for foreground elements. Default is false
-
setUseShadow
final Unit setUseShadow(Boolean useShadow)
Determines whether to use drop shadows for foreground elements. Default is false
-
toJson
final JSONObject toJson()
-
default
final static ForegroundStyle default()
-
-
-
-