Package io.scanbot.sdk.ui_v2.common
Class BadgeStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BadgeStyle implements Parcelable
Configuration of the badge.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
visible
private BackgroundStyle
background
private ScanbotColor
foregroundColor
-
Constructor Summary
Constructors Constructor Description BadgeStyle(Map<String, Object> source)
BadgeStyle(JSONObject json)
BadgeStyle(Boolean visible, BackgroundStyle background, ScanbotColor foregroundColor)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Determines whether the badge is visible or not. final Unit
setVisible(Boolean visible)
Determines whether the badge is visible or not. final BackgroundStyle
getBackground()
Configuration of the background appearance for the badge. final Unit
setBackground(BackgroundStyle background)
Configuration of the background appearance for the badge. final ScanbotColor
getForegroundColor()
The color of the badge's foreground (icon, text). final Unit
setForegroundColor(ScanbotColor foregroundColor)
The color of the badge's foreground (icon, text). final JSONObject
toJson()
final static BadgeStyle
default()
-
-
Constructor Detail
-
BadgeStyle
BadgeStyle(JSONObject json)
-
BadgeStyle
BadgeStyle(Boolean visible, BackgroundStyle background, ScanbotColor foregroundColor)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Determines whether the badge is visible or not. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the badge is visible or not. Default is true
-
getBackground
final BackgroundStyle getBackground()
Configuration of the background appearance for the badge.
-
setBackground
final Unit setBackground(BackgroundStyle background)
Configuration of the background appearance for the badge.
-
getForegroundColor
final ScanbotColor getForegroundColor()
The color of the badge's foreground (icon, text). Default is "?sbColorOnSurface"
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
The color of the badge's foreground (icon, text). Default is "?sbColorOnSurface"
-
toJson
final JSONObject toJson()
-
default
final static BadgeStyle default()
-
-
-
-