Package io.scanbot.sdk.ui_v2.common
Class BadgeStyle
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BadgeStyle implements Parcelable
Configuration of the round button.
-
-
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()
Control the visibility of the badge. final Unit
setVisible(Boolean visible)
Control the visibility of the badge. final BackgroundStyle
getBackground()
The style of the button's background. final Unit
setBackground(BackgroundStyle background)
The style of the button's background. final ScanbotColor
getForegroundColor()
Color of the button foreground (icon, text). final Unit
setForegroundColor(ScanbotColor foregroundColor)
Color of the button 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()
Control the visibility of the badge. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Control the visibility of the badge. Default is true
-
getBackground
final BackgroundStyle getBackground()
The style of the button's background.
-
setBackground
final Unit setBackground(BackgroundStyle background)
The style of the button's background.
-
getForegroundColor
final ScanbotColor getForegroundColor()
Color of the button foreground (icon, text). Default is "?sbColorOnSurface"
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
Color of the button foreground (icon, text). Default is "?sbColorOnSurface"
-
toJson
final JSONObject toJson()
-
default
final static BadgeStyle default()
-
-
-
-