Class FinderDocumentScannerJsonConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class FinderDocumentScannerJsonConfiguration implements Parcelable
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FinderDocumentScannerJsonConfiguration(String version, String screen, Double acceptedAngleScore, Double acceptedSizeScore, Boolean autoSnappingEnabled, Double autoSnappingSensitivity, JsonCameraModule cameraModule, JsonColor cameraBackgroundColor, JsonCameraPreviewMode cameraPreviewMode, Boolean touchToFocusEnabled, String cancelButtonTitle, JsonImageFilterType defaultPageFilter, String enableCameraButtonTitle, String enableCameraExplanationText, Boolean flashButtonHidden, Boolean flashEnabled, Boolean forceUserGuidance, Boolean finderEnabled, JsonColor finderLineColor, Double finderLineWidth, JsonColor cameraOverlayColor, JsonAspectRatio finderAspectRatio, Boolean ignoreBadAspectRatio, Double imageScale, JsonOrientationLockMode orientationLockMode, JsonCapturePhotoQualityPrioritization photoQualityPrioritization, Boolean polygonEnabled, JsonColor polygonBackgroundColor, JsonColor polygonBackgroundColorOK, JsonColor polygonColor, JsonColor polygonColorOK, Double polygonLineWidth, Double polygonCornerRadius, JsonColor autoSnapProgressColor, Double autoSnapProgressLineWidth, Boolean autoSnapProgressEnabled, Boolean lockDocumentAspectRatioToFinder, JsonColor shutterButtonAutoInnerColor, JsonColor shutterButtonAutoOuterColor, JsonColor shutterButtonManualInnerColor, JsonColor shutterButtonManualOuterColor, String textHintBadAngles, String textHintBadAspectRatio, String textHintNothingDetected, String textHintOffCenter, String textHintOK, String textHintTooDark, String textHintTooNoisy, String textHintTooSmall, JsonColor topBarBackgroundColor, JsonColor topBarButtonsActiveColor, JsonColor topBarButtonsInactiveColor, JsonColor userGuidanceBackgroundColor, JsonColor userGuidanceTextColor, Double userGuidanceFontSize, JsonSize documentImageSizeLimit, Boolean shutterButtonHidden, Boolean useButtonsAllCaps, JsonFinderDocumentScannerAccessibilityConfiguration accessibilityConfiguration)
-
Method Summary
Modifier and Type Method Description final String
getVersion()
A version of the configuration object final Unit
setVersion(String version)
A version of the configuration object final String
getScreen()
The configuration object should be applied for this screen final Unit
setScreen(String screen)
The configuration object should be applied for this screen final Double
getAcceptedAngleScore()
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. final Unit
setAcceptedAngleScore(Double acceptedAngleScore)
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. final Double
getAcceptedSizeScore()
The minimum document width or height in percent (0 - 100) of the screen size to accept a detected document. final Unit
setAcceptedSizeScore(Double acceptedSizeScore)
The minimum document width or height in percent (0 - 100) of the screen size to accept a detected document. final Boolean
getAutoSnappingEnabled()
When auto-snapping is enabled the document scanner will take a photo automatically when a document is detected, conditions are good and the auto-snapping time-out elapses. final Unit
setAutoSnappingEnabled(Boolean autoSnappingEnabled)
When auto-snapping is enabled the document scanner will take a photo automatically when a document is detected, conditions are good and the auto-snapping time-out elapses. final Double
getAutoSnappingSensitivity()
Controls the auto-snapping speed. final Unit
setAutoSnappingSensitivity(Double autoSnappingSensitivity)
Controls the auto-snapping speed. final JsonCameraModule
getCameraModule()
The preferred camera module (default - BACK) final Unit
setCameraModule(JsonCameraModule cameraModule)
The preferred camera module (default - BACK) final JsonColor
getCameraBackgroundColor()
The color of the camera background (relevant only when the camera preview mode is CameraPreviewMode.FIT_IN). final Unit
setCameraBackgroundColor(JsonColor cameraBackgroundColor)
The color of the camera background (relevant only when the camera preview mode is CameraPreviewMode.FIT_IN). final JsonCameraPreviewMode
getCameraPreviewMode()
Preview mode of the camera. final Unit
setCameraPreviewMode(JsonCameraPreviewMode cameraPreviewMode)
Preview mode of the camera. final Boolean
getTouchToFocusEnabled()
Whether touch-to-focus is enabled on camera preview. final Unit
setTouchToFocusEnabled(Boolean touchToFocusEnabled)
Whether touch-to-focus is enabled on camera preview. final String
getCancelButtonTitle()
Title of the cancel button. final Unit
setCancelButtonTitle(String cancelButtonTitle)
Title of the cancel button. final JsonImageFilterType
getDefaultPageFilter()
The default image filter type for new documents pages. final Unit
setDefaultPageFilter(JsonImageFilterType defaultPageFilter)
The default image filter type for new documents pages. final String
getEnableCameraButtonTitle()
Title of the button that opens the screen where the user can allow the usage of the camera by the app. final Unit
setEnableCameraButtonTitle(String enableCameraButtonTitle)
Title of the button that opens the screen where the user can allow the usage of the camera by the app. final String
getEnableCameraExplanationText()
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera. final Unit
setEnableCameraExplanationText(String enableCameraExplanationText)
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera. final Boolean
getFlashButtonHidden()
Controls whether the flash toggle button is hidden or not. final Unit
setFlashButtonHidden(Boolean flashButtonHidden)
Controls whether the flash toggle button is hidden or not. final Boolean
getFlashEnabled()
Controls whether the flash should be initially enabled. final Unit
setFlashEnabled(Boolean flashEnabled)
Controls whether the flash should be initially enabled. final Boolean
getForceUserGuidance()
Shows the user guidance elements if autosnapping is disabled. final Unit
setForceUserGuidance(Boolean forceUserGuidance)
Shows the user guidance elements if autosnapping is disabled. final Boolean
getFinderEnabled()
Enables the view finder. final Unit
setFinderEnabled(Boolean finderEnabled)
Enables the view finder. final JsonColor
getFinderLineColor()
Foreground color of the detection overlay. final Unit
setFinderLineColor(JsonColor finderLineColor)
Foreground color of the detection overlay. final Double
getFinderLineWidth()
Width of finder frame border. final Unit
setFinderLineWidth(Double finderLineWidth)
Width of finder frame border. final JsonColor
getCameraOverlayColor()
Background color outside of the finder window. final Unit
setCameraOverlayColor(JsonColor cameraOverlayColor)
Background color outside of the finder window. final JsonAspectRatio
getFinderAspectRatio()
Aspect ratio of finder frame (width \ height), which is used to build actual finder frame. final Unit
setFinderAspectRatio(JsonAspectRatio finderAspectRatio)
Aspect ratio of finder frame (width \ height), which is used to build actual finder frame. final Boolean
getIgnoreBadAspectRatio()
Sets whether to ignore the OK_BUT_BAD_ASPECT_RATIO detection status. final Unit
setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)
Sets whether to ignore the OK_BUT_BAD_ASPECT_RATIO detection status. final Double
getImageScale()
The image scaling factor. final Unit
setImageScale(Double imageScale)
The image scaling factor. final JsonOrientationLockMode
getOrientationLockMode()
UI Interface orientation lock mode final Unit
setOrientationLockMode(JsonOrientationLockMode orientationLockMode)
UI Interface orientation lock mode final JsonCapturePhotoQualityPrioritization
getPhotoQualityPrioritization()
The prioritization of still image quality and capturing speed. final Unit
setPhotoQualityPrioritization(JsonCapturePhotoQualityPrioritization photoQualityPrioritization)
The prioritization of still image quality and capturing speed. final Boolean
getPolygonEnabled()
Enables the displaying of the documents polygon. final Unit
setPolygonEnabled(Boolean polygonEnabled)
Enables the displaying of the documents polygon. final JsonColor
getPolygonBackgroundColor()
The background color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. final Unit
setPolygonBackgroundColor(JsonColor polygonBackgroundColor)
The background color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. final JsonColor
getPolygonBackgroundColorOK()
The background color of the detected document outline when we are ready to snap OK. final Unit
setPolygonBackgroundColorOK(JsonColor polygonBackgroundColorOK)
The background color of the detected document outline when we are ready to snap OK. final JsonColor
getPolygonColor()
The color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. final Unit
setPolygonColor(JsonColor polygonColor)
The color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. final JsonColor
getPolygonColorOK()
The color of the detected document outline when we are ready to snap OK. final Unit
setPolygonColorOK(JsonColor polygonColorOK)
The color of the detected document outline when we are ready to snap OK. final Double
getPolygonLineWidth()
Width of the detected document outline. final Unit
setPolygonLineWidth(Double polygonLineWidth)
Width of the detected document outline. final Double
getPolygonCornerRadius()
The radius to use when drawing rounded corners of the polygon. final Unit
setPolygonCornerRadius(Double polygonCornerRadius)
The radius to use when drawing rounded corners of the polygon. final JsonColor
getAutoSnapProgressColor()
Stroke color of polygon or finder auto snap progress animation. final Unit
setAutoSnapProgressColor(JsonColor autoSnapProgressColor)
Stroke color of polygon or finder auto snap progress animation. final Double
getAutoSnapProgressLineWidth()
Line width of polygon or finder auto snap progress animation. final Unit
setAutoSnapProgressLineWidth(Double autoSnapProgressLineWidth)
Line width of polygon or finder auto snap progress animation. final Boolean
getAutoSnapProgressEnabled()
Whether polygon or finder auto snap progress animation is enabled or not. final Unit
setAutoSnapProgressEnabled(Boolean autoSnapProgressEnabled)
Whether polygon or finder auto snap progress animation is enabled or not. final Boolean
getLockDocumentAspectRatioToFinder()
If true allows only scanning of documents with the aspect ratio that the finder has. final Unit
setLockDocumentAspectRatioToFinder(Boolean lockDocumentAspectRatioToFinder)
If true allows only scanning of documents with the aspect ratio that the finder has. final JsonColor
getShutterButtonAutoInnerColor()
Whether polygon auto snap progress animation is enabled or not. final Unit
setShutterButtonAutoInnerColor(JsonColor shutterButtonAutoInnerColor)
Whether polygon auto snap progress animation is enabled or not. final JsonColor
getShutterButtonAutoOuterColor()
The background color of the shutter button in auto-snapping mode. final Unit
setShutterButtonAutoOuterColor(JsonColor shutterButtonAutoOuterColor)
The background color of the shutter button in auto-snapping mode. final JsonColor
getShutterButtonManualInnerColor()
The foreground color of the shutter button in manual mode. final Unit
setShutterButtonManualInnerColor(JsonColor shutterButtonManualInnerColor)
The foreground color of the shutter button in manual mode. final JsonColor
getShutterButtonManualOuterColor()
The background color of the shutter button in manual mode. final Unit
setShutterButtonManualOuterColor(JsonColor shutterButtonManualOuterColor)
The background color of the shutter button in manual mode. final String
getTextHintBadAngles()
Text hint that will be shown when the current detection status is OK_BUT_BAD_ANGLES final Unit
setTextHintBadAngles(String textHintBadAngles)
Text hint that will be shown when the current detection status is OK_BUT_BAD_ANGLES final String
getTextHintBadAspectRatio()
Text hint that will be shown when the current detection status is OK_BUT_BAD_ASPECT_RATIO final Unit
setTextHintBadAspectRatio(String textHintBadAspectRatio)
Text hint that will be shown when the current detection status is OK_BUT_BAD_ASPECT_RATIO final String
getTextHintNothingDetected()
Text hint that will be shown when the current detection status is ERROR_NOTHING_DETECTED final Unit
setTextHintNothingDetected(String textHintNothingDetected)
Text hint that will be shown when the current detection status is ERROR_NOTHING_DETECTED final String
getTextHintOffCenter()
The text being displayed on the user-guidance label, when a document was detected, but its center is too far away from the image center. final Unit
setTextHintOffCenter(String textHintOffCenter)
The text being displayed on the user-guidance label, when a document was detected, but its center is too far away from the image center. final String
getTextHintOK()
Text hint that will be shown when the current detection status is OK final Unit
setTextHintOK(String textHintOK)
Text hint that will be shown when the current detection status is OK final String
getTextHintTooDark()
Text hint that will be shown when the current detection status is ERROR_TOO_DARK final Unit
setTextHintTooDark(String textHintTooDark)
Text hint that will be shown when the current detection status is ERROR_TOO_DARK final String
getTextHintTooNoisy()
Text hint that will be shown when the current detection status is ERROR_TOO_NOISY final Unit
setTextHintTooNoisy(String textHintTooNoisy)
Text hint that will be shown when the current detection status is ERROR_TOO_NOISY final String
getTextHintTooSmall()
Text hint that will be shown when the current detection status is OK_BUT_TOO_SMALL final Unit
setTextHintTooSmall(String textHintTooSmall)
Text hint that will be shown when the current detection status is OK_BUT_TOO_SMALL final JsonColor
getTopBarBackgroundColor()
The background color of the top toolbar. final Unit
setTopBarBackgroundColor(JsonColor topBarBackgroundColor)
The background color of the top toolbar. final JsonColor
getTopBarButtonsActiveColor()
The color of all active toggle buttons in the toolbar. final Unit
setTopBarButtonsActiveColor(JsonColor topBarButtonsActiveColor)
The color of all active toggle buttons in the toolbar. final JsonColor
getTopBarButtonsInactiveColor()
The color of all inactive toggle buttons in the toolbar. final Unit
setTopBarButtonsInactiveColor(JsonColor topBarButtonsInactiveColor)
The color of all inactive toggle buttons in the toolbar. final JsonColor
getUserGuidanceBackgroundColor()
The background color of the user guidance hints. final Unit
setUserGuidanceBackgroundColor(JsonColor userGuidanceBackgroundColor)
The background color of the user guidance hints. final JsonColor
getUserGuidanceTextColor()
The text color of the user guidance hints. final Unit
setUserGuidanceTextColor(JsonColor userGuidanceTextColor)
The text color of the user guidance hints. final Double
getUserGuidanceFontSize()
Font size of the user guidance. final Unit
setUserGuidanceFontSize(Double userGuidanceFontSize)
Font size of the user guidance. final JsonSize
getDocumentImageSizeLimit()
Limits the maximum size of the document image. final Unit
setDocumentImageSizeLimit(JsonSize documentImageSizeLimit)
Limits the maximum size of the document image. final Boolean
getShutterButtonHidden()
Hides the shutter button if set to TRUE. final Unit
setShutterButtonHidden(Boolean shutterButtonHidden)
Hides the shutter button if set to TRUE. final Boolean
getUseButtonsAllCaps()
Controls whether buttons should use all capitals style, as defined by the Android Material Design. final Unit
setUseButtonsAllCaps(Boolean useButtonsAllCaps)
Controls whether buttons should use all capitals style, as defined by the Android Material Design. final JsonFinderDocumentScannerAccessibilityConfiguration
getAccessibilityConfiguration()
Allows you to customize the accessibility configuration for the Document Scanner UI final Unit
setAccessibilityConfiguration(JsonFinderDocumentScannerAccessibilityConfiguration accessibilityConfiguration)
Allows you to customize the accessibility configuration for the Document Scanner UI -
-
Constructor Detail
-
FinderDocumentScannerJsonConfiguration
FinderDocumentScannerJsonConfiguration(String version, String screen, Double acceptedAngleScore, Double acceptedSizeScore, Boolean autoSnappingEnabled, Double autoSnappingSensitivity, JsonCameraModule cameraModule, JsonColor cameraBackgroundColor, JsonCameraPreviewMode cameraPreviewMode, Boolean touchToFocusEnabled, String cancelButtonTitle, JsonImageFilterType defaultPageFilter, String enableCameraButtonTitle, String enableCameraExplanationText, Boolean flashButtonHidden, Boolean flashEnabled, Boolean forceUserGuidance, Boolean finderEnabled, JsonColor finderLineColor, Double finderLineWidth, JsonColor cameraOverlayColor, JsonAspectRatio finderAspectRatio, Boolean ignoreBadAspectRatio, Double imageScale, JsonOrientationLockMode orientationLockMode, JsonCapturePhotoQualityPrioritization photoQualityPrioritization, Boolean polygonEnabled, JsonColor polygonBackgroundColor, JsonColor polygonBackgroundColorOK, JsonColor polygonColor, JsonColor polygonColorOK, Double polygonLineWidth, Double polygonCornerRadius, JsonColor autoSnapProgressColor, Double autoSnapProgressLineWidth, Boolean autoSnapProgressEnabled, Boolean lockDocumentAspectRatioToFinder, JsonColor shutterButtonAutoInnerColor, JsonColor shutterButtonAutoOuterColor, JsonColor shutterButtonManualInnerColor, JsonColor shutterButtonManualOuterColor, String textHintBadAngles, String textHintBadAspectRatio, String textHintNothingDetected, String textHintOffCenter, String textHintOK, String textHintTooDark, String textHintTooNoisy, String textHintTooSmall, JsonColor topBarBackgroundColor, JsonColor topBarButtonsActiveColor, JsonColor topBarButtonsInactiveColor, JsonColor userGuidanceBackgroundColor, JsonColor userGuidanceTextColor, Double userGuidanceFontSize, JsonSize documentImageSizeLimit, Boolean shutterButtonHidden, Boolean useButtonsAllCaps, JsonFinderDocumentScannerAccessibilityConfiguration accessibilityConfiguration)
-
-
Method Detail
-
getVersion
final String getVersion()
A version of the configuration object
-
setVersion
final Unit setVersion(String version)
A version of the configuration object
-
setScreen
final Unit setScreen(String screen)
The configuration object should be applied for this screen
-
getAcceptedAngleScore
final Double getAcceptedAngleScore()
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. Default is 75.0.
-
setAcceptedAngleScore
final Unit setAcceptedAngleScore(Double acceptedAngleScore)
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. Default is 75.0.
-
getAcceptedSizeScore
final Double getAcceptedSizeScore()
The minimum document width or height in percent (0 - 100) of the screen size to accept a detected document. Default is 80.0.
-
setAcceptedSizeScore
final Unit setAcceptedSizeScore(Double acceptedSizeScore)
The minimum document width or height in percent (0 - 100) of the screen size to accept a detected document. Default is 80.0.
-
getAutoSnappingEnabled
final Boolean getAutoSnappingEnabled()
When auto-snapping is enabled the document scanner will take a photo automatically when a document is detected, conditions are good and the auto-snapping time-out elapses. In this mode the user can still tap the shutter button to snap a document.
-
setAutoSnappingEnabled
final Unit setAutoSnappingEnabled(Boolean autoSnappingEnabled)
When auto-snapping is enabled the document scanner will take a photo automatically when a document is detected, conditions are good and the auto-snapping time-out elapses. In this mode the user can still tap the shutter button to snap a document.
-
getAutoSnappingSensitivity
final Double getAutoSnappingSensitivity()
Controls the auto-snapping speed. Sensitivity must be within the 0..1 range. A value of 1.0 triggers automatic capturing immediately, a value of 0.0 delays the automatic by 3 seconds. The default value is 0.66 (2 seconds)
-
setAutoSnappingSensitivity
final Unit setAutoSnappingSensitivity(Double autoSnappingSensitivity)
Controls the auto-snapping speed. Sensitivity must be within the 0..1 range. A value of 1.0 triggers automatic capturing immediately, a value of 0.0 delays the automatic by 3 seconds. The default value is 0.66 (2 seconds)
-
getCameraModule
final JsonCameraModule getCameraModule()
The preferred camera module (default - BACK)
-
setCameraModule
final Unit setCameraModule(JsonCameraModule cameraModule)
The preferred camera module (default - BACK)
-
getCameraBackgroundColor
final JsonColor getCameraBackgroundColor()
The color of the camera background (relevant only when the camera preview mode is CameraPreviewMode.FIT_IN).
-
setCameraBackgroundColor
final Unit setCameraBackgroundColor(JsonColor cameraBackgroundColor)
The color of the camera background (relevant only when the camera preview mode is CameraPreviewMode.FIT_IN).
-
getCameraPreviewMode
final JsonCameraPreviewMode getCameraPreviewMode()
Preview mode of the camera. Fit-In or Fill-In.
-
setCameraPreviewMode
final Unit setCameraPreviewMode(JsonCameraPreviewMode cameraPreviewMode)
Preview mode of the camera. Fit-In or Fill-In.
-
getTouchToFocusEnabled
final Boolean getTouchToFocusEnabled()
Whether touch-to-focus is enabled on camera preview. Enabled by default. Android only.
-
setTouchToFocusEnabled
final Unit setTouchToFocusEnabled(Boolean touchToFocusEnabled)
Whether touch-to-focus is enabled on camera preview. Enabled by default. Android only.
-
getCancelButtonTitle
final String getCancelButtonTitle()
Title of the cancel button.
-
setCancelButtonTitle
final Unit setCancelButtonTitle(String cancelButtonTitle)
Title of the cancel button.
-
getDefaultPageFilter
final JsonImageFilterType getDefaultPageFilter()
The default image filter type for new documents pages. Defaults to ImageFilterTypeNone.
-
setDefaultPageFilter
final Unit setDefaultPageFilter(JsonImageFilterType defaultPageFilter)
The default image filter type for new documents pages. Defaults to ImageFilterTypeNone.
-
getEnableCameraButtonTitle
final String getEnableCameraButtonTitle()
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
-
setEnableCameraButtonTitle
final Unit setEnableCameraButtonTitle(String enableCameraButtonTitle)
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
-
getEnableCameraExplanationText
final String getEnableCameraExplanationText()
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
-
setEnableCameraExplanationText
final Unit setEnableCameraExplanationText(String enableCameraExplanationText)
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
-
getFlashButtonHidden
final Boolean getFlashButtonHidden()
Controls whether the flash toggle button is hidden or not.
-
setFlashButtonHidden
final Unit setFlashButtonHidden(Boolean flashButtonHidden)
Controls whether the flash toggle button is hidden or not.
-
getFlashEnabled
final Boolean getFlashEnabled()
Controls whether the flash should be initially enabled. The default value is FALSE.
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Controls whether the flash should be initially enabled. The default value is FALSE.
-
getForceUserGuidance
final Boolean getForceUserGuidance()
Shows the user guidance elements if autosnapping is disabled.
-
setForceUserGuidance
final Unit setForceUserGuidance(Boolean forceUserGuidance)
Shows the user guidance elements if autosnapping is disabled.
-
getFinderEnabled
final Boolean getFinderEnabled()
Enables the view finder.
-
setFinderEnabled
final Unit setFinderEnabled(Boolean finderEnabled)
Enables the view finder.
-
getFinderLineColor
final JsonColor getFinderLineColor()
Foreground color of the detection overlay.
-
setFinderLineColor
final Unit setFinderLineColor(JsonColor finderLineColor)
Foreground color of the detection overlay.
-
getFinderLineWidth
final Double getFinderLineWidth()
Width of finder frame border. Default is 2.
-
setFinderLineWidth
final Unit setFinderLineWidth(Double finderLineWidth)
Width of finder frame border. Default is 2.
-
getCameraOverlayColor
final JsonColor getCameraOverlayColor()
Background color outside of the finder window.
-
setCameraOverlayColor
final Unit setCameraOverlayColor(JsonColor cameraOverlayColor)
Background color outside of the finder window.
-
getFinderAspectRatio
final JsonAspectRatio getFinderAspectRatio()
Aspect ratio of finder frame (width \ height), which is used to build actual finder frame. Default is the DIN A4 aspect ratio.
-
setFinderAspectRatio
final Unit setFinderAspectRatio(JsonAspectRatio finderAspectRatio)
Aspect ratio of finder frame (width \ height), which is used to build actual finder frame. Default is the DIN A4 aspect ratio.
-
getIgnoreBadAspectRatio
final Boolean getIgnoreBadAspectRatio()
Sets whether to ignore the OK_BUT_BAD_ASPECT_RATIO detection status. By default BadAspectRatio is not ignored.
-
setIgnoreBadAspectRatio
final Unit setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)
Sets whether to ignore the OK_BUT_BAD_ASPECT_RATIO detection status. By default BadAspectRatio is not ignored.
-
getImageScale
final Double getImageScale()
The image scaling factor. The factor must be within the 0..1 range. A factor of 1 means that the resulting images retain their original size. When the factor is less than 1, resulting images will be made smaller by that factor. By default the scale is 1.
-
setImageScale
final Unit setImageScale(Double imageScale)
The image scaling factor. The factor must be within the 0..1 range. A factor of 1 means that the resulting images retain their original size. When the factor is less than 1, resulting images will be made smaller by that factor. By default the scale is 1.
-
getOrientationLockMode
final JsonOrientationLockMode getOrientationLockMode()
UI Interface orientation lock mode
-
setOrientationLockMode
final Unit setOrientationLockMode(JsonOrientationLockMode orientationLockMode)
UI Interface orientation lock mode
-
getPhotoQualityPrioritization
final JsonCapturePhotoQualityPrioritization getPhotoQualityPrioritization()
The prioritization of still image quality and capturing speed. Defaults to CapturePhotoQualityPrioritization.BALANCED. If you experience lots of blurry still images try to set this property to CapturePhotoQualityPrioritization.QUALITY. Note: Has no effect on devices prior to iOS 13.0!.
-
setPhotoQualityPrioritization
final Unit setPhotoQualityPrioritization(JsonCapturePhotoQualityPrioritization photoQualityPrioritization)
The prioritization of still image quality and capturing speed. Defaults to CapturePhotoQualityPrioritization.BALANCED. If you experience lots of blurry still images try to set this property to CapturePhotoQualityPrioritization.QUALITY. Note: Has no effect on devices prior to iOS 13.0!.
-
getPolygonEnabled
final Boolean getPolygonEnabled()
Enables the displaying of the documents polygon.
-
setPolygonEnabled
final Unit setPolygonEnabled(Boolean polygonEnabled)
Enables the displaying of the documents polygon.
-
getPolygonBackgroundColor
final JsonColor getPolygonBackgroundColor()
The background color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. (All net.doo.snap.lib.detector.DetectionResult with OK_BUT_XXX).
-
setPolygonBackgroundColor
final Unit setPolygonBackgroundColor(JsonColor polygonBackgroundColor)
The background color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. (All net.doo.snap.lib.detector.DetectionResult with OK_BUT_XXX).
-
getPolygonBackgroundColorOK
final JsonColor getPolygonBackgroundColorOK()
The background color of the detected document outline when we are ready to snap OK.
-
setPolygonBackgroundColorOK
final Unit setPolygonBackgroundColorOK(JsonColor polygonBackgroundColorOK)
The background color of the detected document outline when we are ready to snap OK.
-
getPolygonColor
final JsonColor getPolygonColor()
The color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. (All detection statuses in net.doo.snap.lib.detector.DetectionResult that have the OK_BUT_XXX prefix).
-
setPolygonColor
final Unit setPolygonColor(JsonColor polygonColor)
The color of the detected document outline when the document's angle, size or aspect ratio is not yet sufficiently good. (All detection statuses in net.doo.snap.lib.detector.DetectionResult that have the OK_BUT_XXX prefix).
-
getPolygonColorOK
final JsonColor getPolygonColorOK()
The color of the detected document outline when we are ready to snap OK.
-
setPolygonColorOK
final Unit setPolygonColorOK(JsonColor polygonColorOK)
The color of the detected document outline when we are ready to snap OK.
-
getPolygonLineWidth
final Double getPolygonLineWidth()
Width of the detected document outline.
-
setPolygonLineWidth
final Unit setPolygonLineWidth(Double polygonLineWidth)
Width of the detected document outline.
-
getPolygonCornerRadius
final Double getPolygonCornerRadius()
The radius to use when drawing rounded corners of the polygon. Default is 8.0.
-
setPolygonCornerRadius
final Unit setPolygonCornerRadius(Double polygonCornerRadius)
The radius to use when drawing rounded corners of the polygon. Default is 8.0.
-
getAutoSnapProgressColor
final JsonColor getAutoSnapProgressColor()
Stroke color of polygon or finder auto snap progress animation. Default is green. Can't be nil.
-
setAutoSnapProgressColor
final Unit setAutoSnapProgressColor(JsonColor autoSnapProgressColor)
Stroke color of polygon or finder auto snap progress animation. Default is green. Can't be nil.
-
getAutoSnapProgressLineWidth
final Double getAutoSnapProgressLineWidth()
Line width of polygon or finder auto snap progress animation. Default is 5.0.
-
setAutoSnapProgressLineWidth
final Unit setAutoSnapProgressLineWidth(Double autoSnapProgressLineWidth)
Line width of polygon or finder auto snap progress animation. Default is 5.0.
-
getAutoSnapProgressEnabled
final Boolean getAutoSnapProgressEnabled()
Whether polygon or finder auto snap progress animation is enabled or not. Default is true.
-
setAutoSnapProgressEnabled
final Unit setAutoSnapProgressEnabled(Boolean autoSnapProgressEnabled)
Whether polygon or finder auto snap progress animation is enabled or not. Default is true.
-
getLockDocumentAspectRatioToFinder
final Boolean getLockDocumentAspectRatioToFinder()
If true allows only scanning of documents with the aspect ratio that the finder has.
-
setLockDocumentAspectRatioToFinder
final Unit setLockDocumentAspectRatioToFinder(Boolean lockDocumentAspectRatioToFinder)
If true allows only scanning of documents with the aspect ratio that the finder has.
-
getShutterButtonAutoInnerColor
final JsonColor getShutterButtonAutoInnerColor()
Whether polygon auto snap progress animation is enabled or not. Default is true.
-
setShutterButtonAutoInnerColor
final Unit setShutterButtonAutoInnerColor(JsonColor shutterButtonAutoInnerColor)
Whether polygon auto snap progress animation is enabled or not. Default is true.
-
getShutterButtonAutoOuterColor
final JsonColor getShutterButtonAutoOuterColor()
The background color of the shutter button in auto-snapping mode.
-
setShutterButtonAutoOuterColor
final Unit setShutterButtonAutoOuterColor(JsonColor shutterButtonAutoOuterColor)
The background color of the shutter button in auto-snapping mode.
-
getShutterButtonManualInnerColor
final JsonColor getShutterButtonManualInnerColor()
The foreground color of the shutter button in manual mode.
-
setShutterButtonManualInnerColor
final Unit setShutterButtonManualInnerColor(JsonColor shutterButtonManualInnerColor)
The foreground color of the shutter button in manual mode.
-
getShutterButtonManualOuterColor
final JsonColor getShutterButtonManualOuterColor()
The background color of the shutter button in manual mode.
-
setShutterButtonManualOuterColor
final Unit setShutterButtonManualOuterColor(JsonColor shutterButtonManualOuterColor)
The background color of the shutter button in manual mode.
-
getTextHintBadAngles
final String getTextHintBadAngles()
Text hint that will be shown when the current detection status is OK_BUT_BAD_ANGLES
-
setTextHintBadAngles
final Unit setTextHintBadAngles(String textHintBadAngles)
Text hint that will be shown when the current detection status is OK_BUT_BAD_ANGLES
-
getTextHintBadAspectRatio
final String getTextHintBadAspectRatio()
Text hint that will be shown when the current detection status is OK_BUT_BAD_ASPECT_RATIO
-
setTextHintBadAspectRatio
final Unit setTextHintBadAspectRatio(String textHintBadAspectRatio)
Text hint that will be shown when the current detection status is OK_BUT_BAD_ASPECT_RATIO
-
getTextHintNothingDetected
final String getTextHintNothingDetected()
Text hint that will be shown when the current detection status is ERROR_NOTHING_DETECTED
-
setTextHintNothingDetected
final Unit setTextHintNothingDetected(String textHintNothingDetected)
Text hint that will be shown when the current detection status is ERROR_NOTHING_DETECTED
-
getTextHintOffCenter
final String getTextHintOffCenter()
The text being displayed on the user-guidance label, when a document was detected, but its center is too far away from the image center.
-
setTextHintOffCenter
final Unit setTextHintOffCenter(String textHintOffCenter)
The text being displayed on the user-guidance label, when a document was detected, but its center is too far away from the image center.
-
getTextHintOK
final String getTextHintOK()
Text hint that will be shown when the current detection status is OK
-
setTextHintOK
final Unit setTextHintOK(String textHintOK)
Text hint that will be shown when the current detection status is OK
-
getTextHintTooDark
final String getTextHintTooDark()
Text hint that will be shown when the current detection status is ERROR_TOO_DARK
-
setTextHintTooDark
final Unit setTextHintTooDark(String textHintTooDark)
Text hint that will be shown when the current detection status is ERROR_TOO_DARK
-
getTextHintTooNoisy
final String getTextHintTooNoisy()
Text hint that will be shown when the current detection status is ERROR_TOO_NOISY
-
setTextHintTooNoisy
final Unit setTextHintTooNoisy(String textHintTooNoisy)
Text hint that will be shown when the current detection status is ERROR_TOO_NOISY
-
getTextHintTooSmall
final String getTextHintTooSmall()
Text hint that will be shown when the current detection status is OK_BUT_TOO_SMALL
-
setTextHintTooSmall
final Unit setTextHintTooSmall(String textHintTooSmall)
Text hint that will be shown when the current detection status is OK_BUT_TOO_SMALL
-
getTopBarBackgroundColor
final JsonColor getTopBarBackgroundColor()
The background color of the top toolbar.
-
setTopBarBackgroundColor
final Unit setTopBarBackgroundColor(JsonColor topBarBackgroundColor)
The background color of the top toolbar.
-
getTopBarButtonsActiveColor
final JsonColor getTopBarButtonsActiveColor()
The color of all active toggle buttons in the toolbar.
-
setTopBarButtonsActiveColor
final Unit setTopBarButtonsActiveColor(JsonColor topBarButtonsActiveColor)
The color of all active toggle buttons in the toolbar.
-
getTopBarButtonsInactiveColor
final JsonColor getTopBarButtonsInactiveColor()
The color of all inactive toggle buttons in the toolbar.
-
setTopBarButtonsInactiveColor
final Unit setTopBarButtonsInactiveColor(JsonColor topBarButtonsInactiveColor)
The color of all inactive toggle buttons in the toolbar.
-
getUserGuidanceBackgroundColor
final JsonColor getUserGuidanceBackgroundColor()
The background color of the user guidance hints.
-
setUserGuidanceBackgroundColor
final Unit setUserGuidanceBackgroundColor(JsonColor userGuidanceBackgroundColor)
The background color of the user guidance hints.
-
getUserGuidanceTextColor
final JsonColor getUserGuidanceTextColor()
The text color of the user guidance hints.
-
setUserGuidanceTextColor
final Unit setUserGuidanceTextColor(JsonColor userGuidanceTextColor)
The text color of the user guidance hints.
-
getUserGuidanceFontSize
final Double getUserGuidanceFontSize()
Font size of the user guidance. Default is 17.0.
-
setUserGuidanceFontSize
final Unit setUserGuidanceFontSize(Double userGuidanceFontSize)
Font size of the user guidance. Default is 17.0.
-
getDocumentImageSizeLimit
final JsonSize getDocumentImageSizeLimit()
Limits the maximum size of the document image. If width or height are zero, this property is effectively ignored.
-
setDocumentImageSizeLimit
final Unit setDocumentImageSizeLimit(JsonSize documentImageSizeLimit)
Limits the maximum size of the document image. If width or height are zero, this property is effectively ignored.
-
getShutterButtonHidden
final Boolean getShutterButtonHidden()
Hides the shutter button if set to TRUE. Shows it otherwise. Defaults to FALSE. If set to TRUE, auto-snapping is enabled and the property autoSnappingEnabled of the behaviour configuration will have no effect. Also the auto-snapping button will be hidden.
-
setShutterButtonHidden
final Unit setShutterButtonHidden(Boolean shutterButtonHidden)
Hides the shutter button if set to TRUE. Shows it otherwise. Defaults to FALSE. If set to TRUE, auto-snapping is enabled and the property autoSnappingEnabled of the behaviour configuration will have no effect. Also the auto-snapping button will be hidden.
-
getUseButtonsAllCaps
final Boolean getUseButtonsAllCaps()
Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
-
setUseButtonsAllCaps
final Unit setUseButtonsAllCaps(Boolean useButtonsAllCaps)
Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
-
getAccessibilityConfiguration
final JsonFinderDocumentScannerAccessibilityConfiguration getAccessibilityConfiguration()
Allows you to customize the accessibility configuration for the Document Scanner UI
-
setAccessibilityConfiguration
final Unit setAccessibilityConfiguration(JsonFinderDocumentScannerAccessibilityConfiguration accessibilityConfiguration)
Allows you to customize the accessibility configuration for the Document Scanner UI
-
-
-
-