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.
-
-
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()
Whether the icon is visible on the button. final Unit
setVisible(Boolean visible)
Whether the icon is visible on the button. final ScanbotColor
getColor()
Icon color. final Unit
setColor(ScanbotColor color)
Icon color. final String
getAccessibilityDescription()
The text to be read when button is selected through accessibility mode. final Unit
setAccessibilityDescription(String accessibilityDescription)
The text to be read when 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()
Whether the icon is visible on the button. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Whether the icon is visible on the button. Default is true
-
getColor
final ScanbotColor getColor()
Icon color. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
Icon color. Default is "#FFFFFF"
-
getAccessibilityDescription
final String getAccessibilityDescription()
The text to be read when button is selected through accessibility mode. Default is ""
-
setAccessibilityDescription
final Unit setAccessibilityDescription(String accessibilityDescription)
The text to be read when button is selected through accessibility mode. Default is ""
-
toJson
final JSONObject toJson()
-
default
final static IconButton default()
-
-
-
-