Class RoundButton
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class RoundButton implements Parcelable
Configuration of the round button.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
visible
private ScanbotColor
backgroundColor
private ScanbotColor
foregroundColor
private ScanbotColor
activeBackgroundColor
private ScanbotColor
activeForegroundColor
-
Constructor Summary
Constructors Constructor Description RoundButton(Map<String, Object> source)
RoundButton(JSONObject json)
RoundButton(Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
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 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). final JSONObject
toJson()
final static RoundButton
default()
-
-
Constructor Detail
-
RoundButton
RoundButton(JSONObject json)
-
RoundButton
RoundButton(Boolean visible, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Whether to display the button. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Whether to display the button. Default is true
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
Color of the button background shape. Default is "#0000007A"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
Color of the button background shape. Default is "#0000007A"
-
getForegroundColor
final ScanbotColor getForegroundColor()
Color of the button foreground (icon, text). Default is "#FFFFFF"
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
Color of the button foreground (icon, text). Default is "#FFFFFF"
-
getActiveBackgroundColor
final ScanbotColor getActiveBackgroundColor()
Color of the button background shape when the button is active (selected, toggled). Default is "#FFCE5C"
-
setActiveBackgroundColor
final Unit setActiveBackgroundColor(ScanbotColor activeBackgroundColor)
Color of the button background shape when the button is active (selected, toggled). Default is "#FFCE5C"
-
getActiveForegroundColor
final ScanbotColor getActiveForegroundColor()
Color of the button foreground (icon, text) when the button is active (selected, toggled). Default is "#1C1B1F"
-
setActiveForegroundColor
final Unit setActiveForegroundColor(ScanbotColor activeForegroundColor)
Color of the button foreground (icon, text) when the button is active (selected, toggled). Default is "#1C1B1F"
-
toJson
final JSONObject toJson()
-
default
final static RoundButton default()
-
-
-
-