Class IntroductionScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class IntroductionScreenConfiguration implements Parcelable
Configuration of the introduction screen for the document scanner.
-
-
Field Summary
Fields Modifier and Type Field Description private ScanbotColorbackgroundColorprivate ScanbotColordividerColorprivate ScanbotColorhandlerColorprivate BooleanshowAutomaticallyprivate ButtonConfigurationtopBarDoneButtonprivate StyledTexttitleprivate StyledTextsubtitleprivate List<IntroListEntry>items
-
Constructor Summary
Constructors Constructor Description IntroductionScreenConfiguration(Map<String, Object> source)IntroductionScreenConfiguration(JSONObject json)IntroductionScreenConfiguration(ScanbotColor backgroundColor, ScanbotColor dividerColor, ScanbotColor handlerColor, Boolean showAutomatically, ButtonConfiguration topBarDoneButton, StyledText title, StyledText subtitle, List<IntroListEntry> items)
-
Method Summary
Modifier and Type Method Description 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 ButtonConfigurationgetTopBarDoneButton()Configuration of the 'done' button, located in the top bar. final UnitsetTopBarDoneButton(ButtonConfiguration topBarDoneButton)Configuration of the 'done' button, located in the top bar. 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 StyledTextgetSubtitle()The subtitle of the introduction screen. final UnitsetSubtitle(StyledText subtitle)The subtitle of the introduction screen. final List<IntroListEntry>getItems()Configure the scanning steps of the introduction screen. final UnitsetItems(List<IntroListEntry> items)Configure the scanning steps of the introduction screen. final JSONObjecttoJson(ToJsonConfiguration config)final IntroductionScreenConfigurationclone()final static IntroductionScreenConfigurationdefault()-
-
Constructor Detail
-
IntroductionScreenConfiguration
IntroductionScreenConfiguration(JSONObject json)
-
IntroductionScreenConfiguration
IntroductionScreenConfiguration(ScanbotColor backgroundColor, ScanbotColor dividerColor, ScanbotColor handlerColor, Boolean showAutomatically, ButtonConfiguration topBarDoneButton, StyledText title, StyledText subtitle, List<IntroListEntry> items)
-
-
Method Detail
-
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
-
getTopBarDoneButton
final ButtonConfiguration getTopBarDoneButton()
Configuration of the 'done' button, located in the top bar.
-
setTopBarDoneButton
final Unit setTopBarDoneButton(ButtonConfiguration topBarDoneButton)
Configuration of the 'done' button, located in the top bar.
-
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.
-
getSubtitle
final StyledText getSubtitle()
The subtitle of the introduction screen.
-
setSubtitle
final Unit setSubtitle(StyledText subtitle)
The subtitle of the introduction screen.
-
getItems
final List<IntroListEntry> getItems()
Configure the scanning steps of the introduction screen.
-
setItems
final Unit setItems(List<IntroListEntry> items)
Configure the scanning steps of the introduction screen.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final IntroductionScreenConfiguration clone()
-
default
final static IntroductionScreenConfiguration default()
-
-
-
-