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 Booleanvisibleprivate ScanbotColorcolorprivate StringaccessibilityDescription
-
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 BooleangetVisible()Determines whether the icon is visible on the button. final UnitsetVisible(Boolean visible)Determines whether the icon is visible on the button. final ScanbotColorgetColor()The icon color. final UnitsetColor(ScanbotColor color)The icon color. final StringgetAccessibilityDescription()The text to be read when the button is selected through accessibility mode. final UnitsetAccessibilityDescription(String accessibilityDescription)The text to be read when the button is selected through accessibility mode. final JSONObjecttoJson(ToJsonConfiguration config)final IconButtonclone()final static IconButtondefault()-
-
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(ToJsonConfiguration config)
-
clone
final IconButton clone()
-
default
final static IconButton default()
-
-
-
-