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 BooleaniconVisibleprivate ScanbotColorcolorprivate BooleanuseShadow
-
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 BooleangetIconVisible()Determines whether the icon is visible or not. final UnitsetIconVisible(Boolean iconVisible)Determines whether the icon is visible or not. final ScanbotColorgetColor()The color used for foreground elements. final UnitsetColor(ScanbotColor color)The color used for foreground elements. final BooleangetUseShadow()Determines whether to use drop shadows for foreground elements. final UnitsetUseShadow(Boolean useShadow)Determines whether to use drop shadows for foreground elements. final JSONObjecttoJson(ToJsonConfiguration config)final ForegroundStyleclone()final static ForegroundStyledefault()-
-
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(ToJsonConfiguration config)
-
clone
final ForegroundStyle clone()
-
default
final static ForegroundStyle default()
-
-
-
-