Package io.scanbot.sdk.ui_v2.common
Class StyledText
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class StyledText implements Parcelable
Configuration of the text field appearance.
-
-
Constructor Summary
Constructors Constructor Description StyledText(Map<String, Object> source)
StyledText(JSONObject json)
StyledText(Boolean visible, String text, ScanbotColor color, Boolean useShadow)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Determines whether the text field is visible or not. final Unit
setVisible(Boolean visible)
Determines whether the text field is visible or not. final String
getText()
The value of the text field. final Unit
setText(String text)
The value of the text field. final ScanbotColor
getColor()
The text color. final Unit
setColor(ScanbotColor color)
The text color. final Boolean
getUseShadow()
Determines whether to enable drop shadows for the text. final Unit
setUseShadow(Boolean useShadow)
Determines whether to enable drop shadows for the text. final JSONObject
toJson()
final static StyledText
default()
-
-
Constructor Detail
-
StyledText
StyledText(JSONObject json)
-
StyledText
StyledText(Boolean visible, String text, ScanbotColor color, Boolean useShadow)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Determines whether the text field is visible or not. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Determines whether the text field is visible or not. Default is true
-
getColor
final ScanbotColor getColor()
The text color. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
The text color. Default is "#FFFFFF"
-
getUseShadow
final Boolean getUseShadow()
Determines whether to enable drop shadows for the text. Default is false
-
setUseShadow
final Unit setUseShadow(Boolean useShadow)
Determines whether to enable drop shadows for the text. Default is false
-
toJson
final JSONObject toJson()
-
default
final static StyledText default()
-
-
-
-