Package io.scanbot.sdk.ui_v2.common
Class IconButton
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class IconButton implements Parcelable
Configuration of the icon appearance on a button.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
visible
private ScanbotColor
color
private String
accessibilityDescription
-
Constructor Summary
Constructors Constructor Description IconButton(Map<String, Object> source)
IconButton(JSONObject json)
IconButton(Boolean visible, ScanbotColor color, String accessibilityDescription)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Determines whether the icon is visible on the button. final Unit
setVisible(Boolean visible)
Determines whether the icon is visible on the button. final ScanbotColor
getColor()
The icon color. final Unit
setColor(ScanbotColor color)
The icon color. 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 JSONObject
toJson()
final static IconButton
default()
-
-
Constructor Detail
-
IconButton
IconButton(JSONObject json)
-
IconButton
IconButton(Boolean visible, ScanbotColor color, String accessibilityDescription)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Determines whether the icon is visible on the button. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the icon is visible on the button. Default is true
-
getColor
final ScanbotColor getColor()
The icon color. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
The icon color. Default is "#FFFFFF"
-
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 ""
-
toJson
final JSONObject toJson()
-
default
final static IconButton default()
-
-
-
-