Class BadgedButton
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BadgedButton implements Parcelable
Configuration of the round button with badge.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColor
badgeBackgroundColor
private ScanbotColor
badgeForegroundColor
private Boolean
visible
private ScanbotColor
backgroundColor
private ScanbotColor
foregroundColor
private ScanbotColor
activeBackgroundColor
private ScanbotColor
activeForegroundColor
-
Constructor Summary
Constructors Constructor Description BadgedButton(Map<String, Object> json)
BadgedButton()
BadgedButton(ScanbotColor badgeBackgroundColor, ScanbotColor badgeForegroundColor, Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
Method Summary
Modifier and Type Method Description final ScanbotColor
getBadgeBackgroundColor()
Color of the badge's background shape. final Unit
setBadgeBackgroundColor(ScanbotColor badgeBackgroundColor)
Color of the badge's background shape. final ScanbotColor
getBadgeForegroundColor()
Color of the badge foreground (icon, text). final Unit
setBadgeForegroundColor(ScanbotColor badgeForegroundColor)
Color of the badge foreground (icon, text). final Boolean
getVisible()
Whether the button is visible. final Unit
setVisible(Boolean visible)
Whether the button is visible. final ScanbotColor
getBackgroundColor()
Color of the button background shape. final Unit
setBackgroundColor(ScanbotColor backgroundColor)
Color of the button background shape. final ScanbotColor
getForegroundColor()
Color of the button foreground (icon, text). final Unit
setForegroundColor(ScanbotColor foregroundColor)
Color of the button foreground (icon, text). final ScanbotColor
getActiveBackgroundColor()
Color of the button background shape when the button is active (selected, toggled). final Unit
setActiveBackgroundColor(ScanbotColor activeBackgroundColor)
Color of the button background shape when the button is active (selected, toggled). final ScanbotColor
getActiveForegroundColor()
Color of the button foreground (icon, text) when the button is active (selected, toggled). final Unit
setActiveForegroundColor(ScanbotColor activeForegroundColor)
Color of the button foreground (icon, text) when the button is active (selected, toggled). -
-
Constructor Detail
-
BadgedButton
BadgedButton()
-
BadgedButton
BadgedButton(ScanbotColor badgeBackgroundColor, ScanbotColor badgeForegroundColor, Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
-
Method Detail
-
getBadgeBackgroundColor
final ScanbotColor getBadgeBackgroundColor()
Color of the badge's background shape.
-
setBadgeBackgroundColor
final Unit setBadgeBackgroundColor(ScanbotColor badgeBackgroundColor)
Color of the badge's background shape.
-
getBadgeForegroundColor
final ScanbotColor getBadgeForegroundColor()
Color of the badge foreground (icon, text).
-
setBadgeForegroundColor
final Unit setBadgeForegroundColor(ScanbotColor badgeForegroundColor)
Color of the badge foreground (icon, text).
-
getVisible
final Boolean getVisible()
Whether the button is visible.
-
setVisible
final Unit setVisible(Boolean visible)
Whether the button is visible.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
Color of the button background shape.
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
Color of the button background shape.
-
getForegroundColor
final ScanbotColor getForegroundColor()
Color of the button foreground (icon, text).
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
Color of the button foreground (icon, text).
-
getActiveBackgroundColor
final ScanbotColor getActiveBackgroundColor()
Color of the button background shape when the button is active (selected, toggled).
-
setActiveBackgroundColor
final Unit setActiveBackgroundColor(ScanbotColor activeBackgroundColor)
Color of the button background shape when the button is active (selected, toggled).
-
getActiveForegroundColor
final ScanbotColor getActiveForegroundColor()
Color of the button foreground (icon, text) when the button is active (selected, toggled).
-
setActiveForegroundColor
final Unit setActiveForegroundColor(ScanbotColor activeForegroundColor)
Color of the button foreground (icon, text) when the button is active (selected, toggled).
-
-
-
-