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 String
accessibilityDescription
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, String accessibilityDescription, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Determines whether the button is visible or not. final Unit
setVisible(Boolean visible)
Determines whether the button is visible or not. final String
getAccessibilityDescription()
The text to be read when the button is selected through accessibility mode. final Unit
setAccessibilityDescription(String accessibilityDescription)
The text to be read when the button is selected through accessibility mode. final ScanbotColor
getBackgroundColor()
The color of the button's background. final Unit
setBackgroundColor(ScanbotColor backgroundColor)
The color of the button's background. final ScanbotColor
getForegroundColor()
The color of the button's foreground (icon, text). final Unit
setForegroundColor(ScanbotColor foregroundColor)
The color of the button's foreground (icon, text). final ScanbotColor
getActiveBackgroundColor()
The color of the button's background when the button is active (selected, toggled). final Unit
setActiveBackgroundColor(ScanbotColor activeBackgroundColor)
The color of the button's background when the button is active (selected, toggled). final ScanbotColor
getActiveForegroundColor()
The color of the button's foreground (icon, text) when the button is active (selected, toggled). final Unit
setActiveForegroundColor(ScanbotColor activeForegroundColor)
The color of the button's 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, String accessibilityDescription, ScanbotColor backgroundColor, ScanbotColor foregroundColor, ScanbotColor activeBackgroundColor, ScanbotColor activeForegroundColor)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Determines whether the button is visible or not. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the button is visible or not. Default is true
-
getAccessibilityDescription
final String getAccessibilityDescription()
The text to be read when the button is selected through accessibility mode. Default is ""
-
setAccessibilityDescription
final Unit setAccessibilityDescription(String accessibilityDescription)
The text to be read when the button is selected through accessibility mode. Default is ""
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The color of the button's background. Default is "#0000007A"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The color of the button's background. Default is "#0000007A"
-
getForegroundColor
final ScanbotColor getForegroundColor()
The color of the button's foreground (icon, text). Default is "#FFFFFF"
-
setForegroundColor
final Unit setForegroundColor(ScanbotColor foregroundColor)
The color of the button's foreground (icon, text). Default is "#FFFFFF"
-
getActiveBackgroundColor
final ScanbotColor getActiveBackgroundColor()
The color of the button's background when the button is active (selected, toggled). Default is "#FFCE5C"
-
setActiveBackgroundColor
final Unit setActiveBackgroundColor(ScanbotColor activeBackgroundColor)
The color of the button's background when the button is active (selected, toggled). Default is "#FFCE5C"
-
getActiveForegroundColor
final ScanbotColor getActiveForegroundColor()
The color of the button's foreground (icon, text) when the button is active (selected, toggled). Default is "#1C1B1F"
-
setActiveForegroundColor
final Unit setActiveForegroundColor(ScanbotColor activeForegroundColor)
The color of the button's foreground (icon, text) when the button is active (selected, toggled). Default is "#1C1B1F"
-
toJson
final JSONObject toJson()
-
default
final static RoundButton default()
-
-
-
-