Class ReviewScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ReviewScreenConfiguration implements Parcelable
Configuration of the screen for reviewing the scanned pages.
-
-
Field Summary
Fields Modifier and Type Field Description private Booleanenabledprivate StyledTexttopBarTitleprivate IconButtontopBarMoreButtonprivate ButtonConfigurationtopBarBackButtonprivate ReviewMorePopupMenumorePopupprivate RoundButtonzoomButtonprivate ZoomOverlayzoomOverlayprivate ScanbotColorbackgroundColorprivate ReviewBottomBarConfigurationbottomBarprivate IconButtonswitchNextPageButtonprivate IconButtonswitchPreviousPageButtonprivate UserGuidanceConfigurationpageCounterprivate ScanbotAlertDialogdeleteAllPagesAlertDialogprivate ScanbotAlertDialogdeletePageAlertDialog
-
Constructor Summary
Constructors Constructor Description ReviewScreenConfiguration(Map<String, Object> source)ReviewScreenConfiguration(JSONObject json)ReviewScreenConfiguration(Boolean enabled, StyledText topBarTitle, IconButton topBarMoreButton, ButtonConfiguration topBarBackButton, ReviewMorePopupMenu morePopup, RoundButton zoomButton, ZoomOverlay zoomOverlay, ScanbotColor backgroundColor, ReviewBottomBarConfiguration bottomBar, IconButton switchNextPageButton, IconButton switchPreviousPageButton, UserGuidanceConfiguration pageCounter, ScanbotAlertDialog deleteAllPagesAlertDialog, ScanbotAlertDialog deletePageAlertDialog)
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()Determines whether the review screen should be shown or not. final UnitsetEnabled(Boolean enabled)Determines whether the review screen should be shown or not. final StyledTextgetTopBarTitle()Configuration of the title, located in the top bar. final UnitsetTopBarTitle(StyledText topBarTitle)Configuration of the title, located in the top bar. final IconButtongetTopBarMoreButton()Configuration of the 'more' button, located in the top bar. final UnitsetTopBarMoreButton(IconButton topBarMoreButton)Configuration of the 'more' button, located in the top bar. final ButtonConfigurationgetTopBarBackButton()Configuration of the 'back' button, located in the top bar. final UnitsetTopBarBackButton(ButtonConfiguration topBarBackButton)Configuration of the 'back' button, located in the top bar. final ReviewMorePopupMenugetMorePopup()Configuration of the 'more' popup menu for the review screen. final UnitsetMorePopup(ReviewMorePopupMenu morePopup)Configuration of the 'more' popup menu for the review screen. final RoundButtongetZoomButton()Configuration of the 'zoom' button. final UnitsetZoomButton(RoundButton zoomButton)Configuration of the 'zoom' button. final ZoomOverlaygetZoomOverlay()Configuration of the zoom overlay for the review screen. final UnitsetZoomOverlay(ZoomOverlay zoomOverlay)Configuration of the zoom overlay for the review screen. final ScanbotColorgetBackgroundColor()The background color of the review screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the review screen. final ReviewBottomBarConfigurationgetBottomBar()Configuration of the bottom bar for the review screen. final UnitsetBottomBar(ReviewBottomBarConfiguration bottomBar)Configuration of the bottom bar for the review screen. final IconButtongetSwitchNextPageButton()Configuration of the 'next page' button. final UnitsetSwitchNextPageButton(IconButton switchNextPageButton)Configuration of the 'next page' button. final IconButtongetSwitchPreviousPageButton()Configuration of the 'previous page' button. final UnitsetSwitchPreviousPageButton(IconButton switchPreviousPageButton)Configuration of the 'previous page' button. final UserGuidanceConfigurationgetPageCounter()Configuration of the page count label. final UnitsetPageCounter(UserGuidanceConfiguration pageCounter)Configuration of the page count label. final ScanbotAlertDialoggetDeleteAllPagesAlertDialog()Configuration of the alert dialog displayed when trying to delete all the pages. final UnitsetDeleteAllPagesAlertDialog(ScanbotAlertDialog deleteAllPagesAlertDialog)Configuration of the alert dialog displayed when trying to delete all the pages. final ScanbotAlertDialoggetDeletePageAlertDialog()Configuration of the alert dialog displayed when trying to delete a single page. final UnitsetDeletePageAlertDialog(ScanbotAlertDialog deletePageAlertDialog)Configuration of the alert dialog displayed when trying to delete a single page. final JSONObjecttoJson(ToJsonConfiguration config)final ReviewScreenConfigurationclone()final static ReviewScreenConfigurationdefault()-
-
Constructor Detail
-
ReviewScreenConfiguration
ReviewScreenConfiguration(JSONObject json)
-
ReviewScreenConfiguration
ReviewScreenConfiguration(Boolean enabled, StyledText topBarTitle, IconButton topBarMoreButton, ButtonConfiguration topBarBackButton, ReviewMorePopupMenu morePopup, RoundButton zoomButton, ZoomOverlay zoomOverlay, ScanbotColor backgroundColor, ReviewBottomBarConfiguration bottomBar, IconButton switchNextPageButton, IconButton switchPreviousPageButton, UserGuidanceConfiguration pageCounter, ScanbotAlertDialog deleteAllPagesAlertDialog, ScanbotAlertDialog deletePageAlertDialog)
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Determines whether the review screen should be shown or not. If 'false', the review screen will be skipped and the scanned document will be returned immediately.
Default is true
-
setEnabled
final Unit setEnabled(Boolean enabled)
Determines whether the review screen should be shown or not. If 'false', the review screen will be skipped and the scanned document will be returned immediately.
Default is true
-
getTopBarTitle
final StyledText getTopBarTitle()
Configuration of the title, located in the top bar.
-
setTopBarTitle
final Unit setTopBarTitle(StyledText topBarTitle)
Configuration of the title, located in the top bar.
-
getTopBarMoreButton
final IconButton getTopBarMoreButton()
Configuration of the 'more' button, located in the top bar.
-
setTopBarMoreButton
final Unit setTopBarMoreButton(IconButton topBarMoreButton)
Configuration of the 'more' button, located in the top bar.
-
getTopBarBackButton
final ButtonConfiguration getTopBarBackButton()
Configuration of the 'back' button, located in the top bar.
-
setTopBarBackButton
final Unit setTopBarBackButton(ButtonConfiguration topBarBackButton)
Configuration of the 'back' button, located in the top bar.
-
getMorePopup
final ReviewMorePopupMenu getMorePopup()
Configuration of the 'more' popup menu for the review screen.
-
setMorePopup
final Unit setMorePopup(ReviewMorePopupMenu morePopup)
Configuration of the 'more' popup menu for the review screen.
-
getZoomButton
final RoundButton getZoomButton()
Configuration of the 'zoom' button.
-
setZoomButton
final Unit setZoomButton(RoundButton zoomButton)
Configuration of the 'zoom' button.
-
getZoomOverlay
final ZoomOverlay getZoomOverlay()
Configuration of the zoom overlay for the review screen.
-
setZoomOverlay
final Unit setZoomOverlay(ZoomOverlay zoomOverlay)
Configuration of the zoom overlay for the review screen.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The background color of the review screen.
Default is "?sbColorOnSurfaceVariant"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the review screen.
Default is "?sbColorOnSurfaceVariant"
-
getBottomBar
final ReviewBottomBarConfiguration getBottomBar()
Configuration of the bottom bar for the review screen.
-
setBottomBar
final Unit setBottomBar(ReviewBottomBarConfiguration bottomBar)
Configuration of the bottom bar for the review screen.
-
getSwitchNextPageButton
final IconButton getSwitchNextPageButton()
Configuration of the 'next page' button.
-
setSwitchNextPageButton
final Unit setSwitchNextPageButton(IconButton switchNextPageButton)
Configuration of the 'next page' button.
-
getSwitchPreviousPageButton
final IconButton getSwitchPreviousPageButton()
Configuration of the 'previous page' button.
-
setSwitchPreviousPageButton
final Unit setSwitchPreviousPageButton(IconButton switchPreviousPageButton)
Configuration of the 'previous page' button.
-
getPageCounter
final UserGuidanceConfiguration getPageCounter()
Configuration of the page count label.
-
setPageCounter
final Unit setPageCounter(UserGuidanceConfiguration pageCounter)
Configuration of the page count label.
-
getDeleteAllPagesAlertDialog
final ScanbotAlertDialog getDeleteAllPagesAlertDialog()
Configuration of the alert dialog displayed when trying to delete all the pages.
-
setDeleteAllPagesAlertDialog
final Unit setDeleteAllPagesAlertDialog(ScanbotAlertDialog deleteAllPagesAlertDialog)
Configuration of the alert dialog displayed when trying to delete all the pages.
-
getDeletePageAlertDialog
final ScanbotAlertDialog getDeletePageAlertDialog()
Configuration of the alert dialog displayed when trying to delete a single page.
-
setDeletePageAlertDialog
final Unit setDeletePageAlertDialog(ScanbotAlertDialog deletePageAlertDialog)
Configuration of the alert dialog displayed when trying to delete a single page.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ReviewScreenConfiguration clone()
-
default
final static ReviewScreenConfiguration default()
-
-
-
-