Class CameraScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CameraScreenConfiguration implements Parcelable
Configuration of the screen for scanning the pages with the camera.
-
-
Field Summary
Fields Modifier and Type Field Description private AcknowledgementScreenConfigurationacknowledgementprivate IntroductionScreenConfigurationintroductionprivate ScanAssistanceOverlayscanAssistanceOverlayprivate CameraPermissionScreencameraPermissionprivate StyledTexttopBarTitleprivate IconButtontopBarIntroButtonprivate ButtonConfigurationtopBarBackButtonprivate UserGuidanceConfigurationtopUserGuidanceprivate DocumentScannerUserGuidanceuserGuidanceprivate ScanbotColorbackgroundColorprivate BooleanautoRotateImagesprivate DocumentScannerCameraConfigurationcameraConfigurationprivate DocumentScannerParametersscannerParametersprivate DocumentPolygonConfigurationpolygonprivate CameraBottomBarbottomBarprivate ViewFinderConfigurationviewFinderprivate CaptureFeedbackcaptureFeedbackprivate Vibrationvibrationprivate Timeoutstimeoutsprivate ScanbotAlertDialoglimitReachedAlertDialogprivate ScanbotAlertDialogcancelAlertDialog
-
Constructor Summary
Constructors Constructor Description CameraScreenConfiguration(Map<String, Object> source)CameraScreenConfiguration(JSONObject json)CameraScreenConfiguration(AcknowledgementScreenConfiguration acknowledgement, IntroductionScreenConfiguration introduction, ScanAssistanceOverlay scanAssistanceOverlay, CameraPermissionScreen cameraPermission, StyledText topBarTitle, IconButton topBarIntroButton, ButtonConfiguration topBarBackButton, UserGuidanceConfiguration topUserGuidance, DocumentScannerUserGuidance userGuidance, ScanbotColor backgroundColor, Boolean autoRotateImages, DocumentScannerCameraConfiguration cameraConfiguration, DocumentScannerParameters scannerParameters, DocumentPolygonConfiguration polygon, CameraBottomBar bottomBar, ViewFinderConfiguration viewFinder, CaptureFeedback captureFeedback, Vibration vibration, Timeouts timeouts, ScanbotAlertDialog limitReachedAlertDialog, ScanbotAlertDialog cancelAlertDialog)
-
Method Summary
Modifier and Type Method Description final AcknowledgementScreenConfigurationgetAcknowledgement()Configuration of the acknowledgement screen. final UnitsetAcknowledgement(AcknowledgementScreenConfiguration acknowledgement)Configuration of the acknowledgement screen. final IntroductionScreenConfigurationgetIntroduction()Configuration of the document scanner introduction screen. final UnitsetIntroduction(IntroductionScreenConfiguration introduction)Configuration of the document scanner introduction screen. final ScanAssistanceOverlaygetScanAssistanceOverlay()Configuration of the scan assistance overlay. final UnitsetScanAssistanceOverlay(ScanAssistanceOverlay scanAssistanceOverlay)Configuration of the scan assistance overlay. final CameraPermissionScreengetCameraPermission()Configuration of the camera permission screen. final UnitsetCameraPermission(CameraPermissionScreen cameraPermission)Configuration of the camera permission screen. 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 IconButtongetTopBarIntroButton()Configuration of the 'introduction' button, located in the top bar. final UnitsetTopBarIntroButton(IconButton topBarIntroButton)Configuration of the 'introduction' button, located in the top bar. final ButtonConfigurationgetTopBarBackButton()Configuration of the 'cancel' button, located in the top bar. final UnitsetTopBarBackButton(ButtonConfiguration topBarBackButton)Configuration of the 'cancel' button, located in the top bar. final UserGuidanceConfigurationgetTopUserGuidance()Configuration of the static user guidance, located just below the top bar. final UnitsetTopUserGuidance(UserGuidanceConfiguration topUserGuidance)Configuration of the static user guidance, located just below the top bar. final DocumentScannerUserGuidancegetUserGuidance()Configuration of the hints guiding users through the scanning process. final UnitsetUserGuidance(DocumentScannerUserGuidance userGuidance)Configuration of the hints guiding users through the scanning process. final ScanbotColorgetBackgroundColor()The background color of the camera screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the camera screen. final BooleangetAutoRotateImages()If set to true, images imported from the gallery/photo library will be analyzed and eventually rotated to correct their orientation. final UnitsetAutoRotateImages(Boolean autoRotateImages)If set to true, images imported from the gallery/photo library will be analyzed and eventually rotated to correct their orientation. final DocumentScannerCameraConfigurationgetCameraConfiguration()Configuration of the camera behavior. final UnitsetCameraConfiguration(DocumentScannerCameraConfiguration cameraConfiguration)Configuration of the camera behavior. final DocumentScannerParametersgetScannerParameters()The parameters of the document scanner. final UnitsetScannerParameters(DocumentScannerParameters scannerParameters)The parameters of the document scanner. final DocumentPolygonConfigurationgetPolygon()Configuration of the document contour detection polygon. final UnitsetPolygon(DocumentPolygonConfiguration polygon)Configuration of the document contour detection polygon. final CameraBottomBargetBottomBar()Configuration of the bottom bar for the camera screen. final UnitsetBottomBar(CameraBottomBar bottomBar)Configuration of the bottom bar for the camera screen. final ViewFinderConfigurationgetViewFinder()Configuration of the viewfinder. final UnitsetViewFinder(ViewFinderConfiguration viewFinder)Configuration of the viewfinder. final CaptureFeedbackgetCaptureFeedback()Configuration of the feedback shown after snapping a page. final UnitsetCaptureFeedback(CaptureFeedback captureFeedback)Configuration of the feedback shown after snapping a page. final VibrationgetVibration()Configuration of the scan confirmation vibration. final UnitsetVibration(Vibration vibration)Configuration of the scan confirmation vibration. final TimeoutsgetTimeouts()Configuration of timeouts. final UnitsetTimeouts(Timeouts timeouts)Configuration of timeouts. final ScanbotAlertDialoggetLimitReachedAlertDialog()Configuration of the alert dialog displayed when the scan limit is reached. final UnitsetLimitReachedAlertDialog(ScanbotAlertDialog limitReachedAlertDialog)Configuration of the alert dialog displayed when the scan limit is reached. final ScanbotAlertDialoggetCancelAlertDialog()Configuration of the alert dialog displayed when the 'cancel' button is pressed. final UnitsetCancelAlertDialog(ScanbotAlertDialog cancelAlertDialog)Configuration of the alert dialog displayed when the 'cancel' button is pressed. final JSONObjecttoJson(ToJsonConfiguration config)final CameraScreenConfigurationclone()final static CameraScreenConfigurationdefault()-
-
Constructor Detail
-
CameraScreenConfiguration
CameraScreenConfiguration(JSONObject json)
-
CameraScreenConfiguration
CameraScreenConfiguration(AcknowledgementScreenConfiguration acknowledgement, IntroductionScreenConfiguration introduction, ScanAssistanceOverlay scanAssistanceOverlay, CameraPermissionScreen cameraPermission, StyledText topBarTitle, IconButton topBarIntroButton, ButtonConfiguration topBarBackButton, UserGuidanceConfiguration topUserGuidance, DocumentScannerUserGuidance userGuidance, ScanbotColor backgroundColor, Boolean autoRotateImages, DocumentScannerCameraConfiguration cameraConfiguration, DocumentScannerParameters scannerParameters, DocumentPolygonConfiguration polygon, CameraBottomBar bottomBar, ViewFinderConfiguration viewFinder, CaptureFeedback captureFeedback, Vibration vibration, Timeouts timeouts, ScanbotAlertDialog limitReachedAlertDialog, ScanbotAlertDialog cancelAlertDialog)
-
-
Method Detail
-
getAcknowledgement
final AcknowledgementScreenConfiguration getAcknowledgement()
Configuration of the acknowledgement screen.
-
setAcknowledgement
final Unit setAcknowledgement(AcknowledgementScreenConfiguration acknowledgement)
Configuration of the acknowledgement screen.
-
getIntroduction
final IntroductionScreenConfiguration getIntroduction()
Configuration of the document scanner introduction screen.
-
setIntroduction
final Unit setIntroduction(IntroductionScreenConfiguration introduction)
Configuration of the document scanner introduction screen.
-
getScanAssistanceOverlay
final ScanAssistanceOverlay getScanAssistanceOverlay()
Configuration of the scan assistance overlay.
-
setScanAssistanceOverlay
final Unit setScanAssistanceOverlay(ScanAssistanceOverlay scanAssistanceOverlay)
Configuration of the scan assistance overlay.
-
getCameraPermission
final CameraPermissionScreen getCameraPermission()
Configuration of the camera permission screen.
-
setCameraPermission
final Unit setCameraPermission(CameraPermissionScreen cameraPermission)
Configuration of the camera permission screen.
-
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.
-
getTopBarIntroButton
final IconButton getTopBarIntroButton()
Configuration of the 'introduction' button, located in the top bar.
-
setTopBarIntroButton
final Unit setTopBarIntroButton(IconButton topBarIntroButton)
Configuration of the 'introduction' button, located in the top bar.
-
getTopBarBackButton
final ButtonConfiguration getTopBarBackButton()
Configuration of the 'cancel' button, located in the top bar.
-
setTopBarBackButton
final Unit setTopBarBackButton(ButtonConfiguration topBarBackButton)
Configuration of the 'cancel' button, located in the top bar.
-
getTopUserGuidance
final UserGuidanceConfiguration getTopUserGuidance()
Configuration of the static user guidance, located just below the top bar.
-
setTopUserGuidance
final Unit setTopUserGuidance(UserGuidanceConfiguration topUserGuidance)
Configuration of the static user guidance, located just below the top bar.
-
getUserGuidance
final DocumentScannerUserGuidance getUserGuidance()
Configuration of the hints guiding users through the scanning process.
-
setUserGuidance
final Unit setUserGuidance(DocumentScannerUserGuidance userGuidance)
Configuration of the hints guiding users through the scanning process.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The background color of the camera screen.
Default is "#000000FF"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the camera screen.
Default is "#000000FF"
-
getAutoRotateImages
final Boolean getAutoRotateImages()
If set to true, images imported from the gallery/photo library will be analyzed and eventually rotated to correct their orientation.
Default is true
-
setAutoRotateImages
final Unit setAutoRotateImages(Boolean autoRotateImages)
If set to true, images imported from the gallery/photo library will be analyzed and eventually rotated to correct their orientation.
Default is true
-
getCameraConfiguration
final DocumentScannerCameraConfiguration getCameraConfiguration()
Configuration of the camera behavior.
-
setCameraConfiguration
final Unit setCameraConfiguration(DocumentScannerCameraConfiguration cameraConfiguration)
Configuration of the camera behavior.
-
getScannerParameters
final DocumentScannerParameters getScannerParameters()
The parameters of the document scanner.
-
setScannerParameters
final Unit setScannerParameters(DocumentScannerParameters scannerParameters)
The parameters of the document scanner.
-
getPolygon
final DocumentPolygonConfiguration getPolygon()
Configuration of the document contour detection polygon.
-
setPolygon
final Unit setPolygon(DocumentPolygonConfiguration polygon)
Configuration of the document contour detection polygon.
-
getBottomBar
final CameraBottomBar getBottomBar()
Configuration of the bottom bar for the camera screen.
-
setBottomBar
final Unit setBottomBar(CameraBottomBar bottomBar)
Configuration of the bottom bar for the camera screen.
-
getViewFinder
final ViewFinderConfiguration getViewFinder()
Configuration of the viewfinder.
-
setViewFinder
final Unit setViewFinder(ViewFinderConfiguration viewFinder)
Configuration of the viewfinder.
-
getCaptureFeedback
final CaptureFeedback getCaptureFeedback()
Configuration of the feedback shown after snapping a page.
-
setCaptureFeedback
final Unit setCaptureFeedback(CaptureFeedback captureFeedback)
Configuration of the feedback shown after snapping a page.
-
getVibration
final Vibration getVibration()
Configuration of the scan confirmation vibration.
-
setVibration
final Unit setVibration(Vibration vibration)
Configuration of the scan confirmation vibration.
-
getTimeouts
final Timeouts getTimeouts()
Configuration of timeouts.
-
setTimeouts
final Unit setTimeouts(Timeouts timeouts)
Configuration of timeouts.
-
getLimitReachedAlertDialog
final ScanbotAlertDialog getLimitReachedAlertDialog()
Configuration of the alert dialog displayed when the scan limit is reached.
-
setLimitReachedAlertDialog
final Unit setLimitReachedAlertDialog(ScanbotAlertDialog limitReachedAlertDialog)
Configuration of the alert dialog displayed when the scan limit is reached.
-
getCancelAlertDialog
final ScanbotAlertDialog getCancelAlertDialog()
Configuration of the alert dialog displayed when the 'cancel' button is pressed.
-
setCancelAlertDialog
final Unit setCancelAlertDialog(ScanbotAlertDialog cancelAlertDialog)
Configuration of the alert dialog displayed when the 'cancel' button is pressed.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final CameraScreenConfiguration clone()
-
default
final static CameraScreenConfiguration default()
-
-
-
-