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 TextPatternScannerIntroImage
image
private ScanbotColor
backgroundColor
private ScanbotColor
dividerColor
private ScanbotColor
handlerColor
private Boolean
showAutomatically
private StyledText
title
private StyledText
explanation
private ButtonConfiguration
doneButton
-
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 TextPatternScannerIntroImage
getImage()
The image for the introduction screen. final Unit
setImage(TextPatternScannerIntroImage image)
The image for the introduction screen. final ScanbotColor
getBackgroundColor()
The background color of the introduction screen. final Unit
setBackgroundColor(ScanbotColor backgroundColor)
The background color of the introduction screen. final ScanbotColor
getDividerColor()
The divider color of the introduction screen. final Unit
setDividerColor(ScanbotColor dividerColor)
The divider color of the introduction screen. final ScanbotColor
getHandlerColor()
The handle color of the introduction screen. final Unit
setHandlerColor(ScanbotColor handlerColor)
The handle color of the introduction screen. final Boolean
getShowAutomatically()
Determines whether the introduction screen should automatically be shown or not when the scanning session starts. final Unit
setShowAutomatically(Boolean showAutomatically)
Determines whether the introduction screen should automatically be shown or not when the scanning session starts. final StyledText
getTitle()
The title of the introduction screen, located in the top bar. final Unit
setTitle(StyledText title)
The title of the introduction screen, located in the top bar. final StyledText
getExplanation()
The text explanation of the introduction screen. final Unit
setExplanation(StyledText explanation)
The text explanation of the introduction screen. final ButtonConfiguration
getDoneButton()
Configuration of the 'Done' / 'Start scanning' button. final Unit
setDoneButton(ButtonConfiguration doneButton)
Configuration of the 'Done' / 'Start scanning' button. final JSONObject
toJson(ToJsonConfiguration config)
final TextPatternScannerIntroScreenConfiguration
clone()
final static TextPatternScannerIntroScreenConfiguration
default()
-
-
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()
-
-
-
-