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 BooleangetVisible()Determines whether the text field is visible or not. final UnitsetVisible(Boolean visible)Determines whether the text field is visible or not. final StringgetText()The value of the text field. final UnitsetText(String text)The value of the text field. final ScanbotColorgetColor()The text color. final UnitsetColor(ScanbotColor color)The text color. final BooleangetUseShadow()Determines whether to enable drop shadows for the text. final UnitsetUseShadow(Boolean useShadow)Determines whether to enable drop shadows for the text. final JSONObjecttoJson(ToJsonConfiguration config)final StyledTextclone()final static StyledTextdefault()-
-
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(ToJsonConfiguration config)
-
clone
final StyledText clone()
-
default
final static StyledText default()
-
-
-
-