Class TextPatternScannerIntroScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TextPatternScannerIntroScreenConfiguration implements Parcelable
Configuration of the introduction screen for the generic text scanner.
-
-
Field Summary
Fields Modifier and Type Field Description private TextPatternScannerIntroImageimageprivate ScanbotColorbackgroundColorprivate ScanbotColordividerColorprivate ScanbotColorhandlerColorprivate BooleanshowAutomaticallyprivate StyledTexttitleprivate StyledTextexplanationprivate ButtonConfigurationdoneButton
-
Constructor Summary
Constructors Constructor Description TextPatternScannerIntroScreenConfiguration(Map<String, Object> source)TextPatternScannerIntroScreenConfiguration(JSONObject json)TextPatternScannerIntroScreenConfiguration(TextPatternScannerIntroImage image, ScanbotColor backgroundColor, ScanbotColor dividerColor, ScanbotColor handlerColor, Boolean showAutomatically, StyledText title, StyledText explanation, ButtonConfiguration doneButton)
-
Method Summary
Modifier and Type Method Description final TextPatternScannerIntroImagegetImage()The image for the introduction screen. final UnitsetImage(TextPatternScannerIntroImage image)The image for the introduction screen. final ScanbotColorgetBackgroundColor()The background color of the introduction screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the introduction screen. final ScanbotColorgetDividerColor()The divider color of the introduction screen. final UnitsetDividerColor(ScanbotColor dividerColor)The divider color of the introduction screen. final ScanbotColorgetHandlerColor()The handle color of the introduction screen. final UnitsetHandlerColor(ScanbotColor handlerColor)The handle color of the introduction screen. final BooleangetShowAutomatically()Determines whether the introduction screen should automatically be shown or not when the scanning session starts. final UnitsetShowAutomatically(Boolean showAutomatically)Determines whether the introduction screen should automatically be shown or not when the scanning session starts. final StyledTextgetTitle()The title of the introduction screen, located in the top bar. final UnitsetTitle(StyledText title)The title of the introduction screen, located in the top bar. final StyledTextgetExplanation()The text explanation of the introduction screen. final UnitsetExplanation(StyledText explanation)The text explanation of the introduction screen. final ButtonConfigurationgetDoneButton()Configuration of the 'Done' / 'Start scanning' button. final UnitsetDoneButton(ButtonConfiguration doneButton)Configuration of the 'Done' / 'Start scanning' button. final JSONObjecttoJson(ToJsonConfiguration config)final TextPatternScannerIntroScreenConfigurationclone()final static TextPatternScannerIntroScreenConfigurationdefault()-
-
Constructor Detail
-
TextPatternScannerIntroScreenConfiguration
TextPatternScannerIntroScreenConfiguration(Map<String, Object> source)
-
TextPatternScannerIntroScreenConfiguration
TextPatternScannerIntroScreenConfiguration(JSONObject json)
-
TextPatternScannerIntroScreenConfiguration
TextPatternScannerIntroScreenConfiguration(TextPatternScannerIntroImage image, ScanbotColor backgroundColor, ScanbotColor dividerColor, ScanbotColor handlerColor, Boolean showAutomatically, StyledText title, StyledText explanation, ButtonConfiguration doneButton)
-
-
Method Detail
-
getImage
final TextPatternScannerIntroImage getImage()
The image for the introduction screen.
-
setImage
final Unit setImage(TextPatternScannerIntroImage image)
The image for the introduction screen.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The background color of the introduction screen.
Default is "?sbColorSurface"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the introduction screen.
Default is "?sbColorSurface"
-
getDividerColor
final ScanbotColor getDividerColor()
The divider color of the introduction screen.
Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
The divider color of the introduction screen.
Default is "?sbColorOutline"
-
getHandlerColor
final ScanbotColor getHandlerColor()
The handle color of the introduction screen.
Default is "?sbColorOutline"
-
setHandlerColor
final Unit setHandlerColor(ScanbotColor handlerColor)
The handle color of the introduction screen.
Default is "?sbColorOutline"
-
getShowAutomatically
final Boolean getShowAutomatically()
Determines whether the introduction screen should automatically be shown or not when the scanning session starts.
Default is false
-
setShowAutomatically
final Unit setShowAutomatically(Boolean showAutomatically)
Determines whether the introduction screen should automatically be shown or not when the scanning session starts.
Default is false
-
getTitle
final StyledText getTitle()
The title of the introduction screen, located in the top bar.
-
setTitle
final Unit setTitle(StyledText title)
The title of the introduction screen, located in the top bar.
-
getExplanation
final StyledText getExplanation()
The text explanation of the introduction screen.
-
setExplanation
final Unit setExplanation(StyledText explanation)
The text explanation of the introduction screen.
-
getDoneButton
final ButtonConfiguration getDoneButton()
Configuration of the 'Done' / 'Start scanning' button.
-
setDoneButton
final Unit setDoneButton(ButtonConfiguration doneButton)
Configuration of the 'Done' / 'Start scanning' button.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final TextPatternScannerIntroScreenConfiguration clone()
-
default
final static TextPatternScannerIntroScreenConfiguration default()
-
-
-
-