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()
Whether the text field is visible. final Unit
setVisible(Boolean visible)
Whether the text field is visible. final String
getText()
Value of the text field. final Unit
setText(String text)
Value of the text field. final ScanbotColor
getColor()
Text color. final Unit
setColor(ScanbotColor color)
Text color. final Boolean
getUseShadow()
Whether to enable drop shadows for the text. final Unit
setUseShadow(Boolean useShadow)
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()
Whether the text field is visible. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Whether the text field is visible. Default is true
-
getColor
final ScanbotColor getColor()
Text color. Default is "#FFFFFF"
-
setColor
final Unit setColor(ScanbotColor color)
Text color. Default is "#FFFFFF"
-
getUseShadow
final Boolean getUseShadow()
Whether to enable drop shadows for the text. Default is false
-
setUseShadow
final Unit setUseShadow(Boolean useShadow)
Whether to enable drop shadows for the text. Default is false
-
toJson
final JSONObject toJson()
-
default
final static StyledText default()
-
-
-
-