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> json)
BadgeStyle()
BadgeStyle(Boolean visible, BackgroundStyle background, ScanbotColor foregroundColor)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Whether to display the button. final Unit
setVisible(Boolean visible)
Whether to display the button. 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). -
-
Constructor Detail
-
BadgeStyle
BadgeStyle()
-
BadgeStyle
BadgeStyle(Boolean visible, BackgroundStyle background, ScanbotColor foregroundColor)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Whether to display the button.
-
setVisible
final Unit setVisible(Boolean visible)
Whether to display the button.
-
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).
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
Color of the button foreground (icon, text).
-
-
-
-