Optional
acceptedOptional
acceptedThe brightness threshold to accept a detected document in the range of 0 (very dark) to 255 (very bright). If the average brightness value of the detectors input image is below this value, the status of the detection will be set to ERROR_TOO_DARK.
Optional
acceptedThe minimum document width or height in percent (0 - 100) of the screen size to accept a detected document. Default is 80.0.
Optional
accessibilityAllows you to customize the accessibility configuration for the Document Scanner UI
Optional
autoControls whether the auto-snapping toggle button is hidden or not.
Optional
autoTitle of the auto-snapping toggle button.
Optional
autoThe minimum delay in seconds between two consecutive automatic image captures. iOS only.
Optional
autoWhen 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.
Optional
autoControls 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)
Optional
bottomThe background color of the bottom shutter-bar.
Optional
bottomThe color of the title of all buttons in the bottom shutter-bar (Cancel button, etc.), as well as the camera permission prompt button.
Optional
cameraThe color of the camera background (relevant only when the camera preview mode is CameraPreviewMode.FIT_IN).
Optional
cameraThe preferred camera module (default - BACK)
Optional
cameraPreview mode of the camera. Fit-In or Fill-In.
Optional
cameraString being displayed on the label describing that the app is in split mode and needs to go fullscreen to work with camera. iOS only.
Optional
cancelWhether the cancel button is hidden or not. iOS only.
Optional
cancelTitle of the cancel button.
Optional
defaultThe default image filter type for new documents pages. Defaults to ImageFilterTypeNone.
Optional
detectorThe mode of the document detector to be used for document outline detection. Defaults to ML_BASED. iOS only. For Android, use the Scanbot SDK initializer.
Optional
documentLimits the maximum size of the document image. If width or height are zero, this property is effectively ignored.
Optional
enableTitle of the button that opens the screen where the user can allow the usage of the camera by the app.
Optional
enableText that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
Optional
flashControls whether the flash toggle button is hidden or not.
Optional
flashTitle of the flash toggle button.
Optional
flashControls whether the flash should be initially enabled. The default value is FALSE.
Optional
forceShows the user guidance elements if autosnapping is disabled.
Optional
ignoreSets whether to ignore the OK_BUT_BAD_ASPECT_RATIO detection status. By default BadAspectRatio is not ignored.
Optional
imageThe 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.
Optional
maxMaximum number of pages to scan. Ignored when set to null, or when multiPageEnabled
is FALSE. Default value is null.
Optional
multiControls whether the multi-page toggle button is hidden or not.
Optional
multiTitle of the multi-page mode toggle button.
Optional
multiControls multi-page mode. When enabled, the user can take multiple document photos before closing the screen by tapping the page counter button. When disabled, the screen will be closed immediately after the first document photo is made. The default value is FALSE.
Optional
orientationUI Interface orientation lock mode
Optional
pageTitle suffix of the button that finishes the document scanning when multi-page scanning is enabled. The button's title has the format "# Pages", where '#' shows the number of images captured up to now and the suffix "Pages" is set using this method.
Optional
photoThe 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!. iOS only.
Optional
polygonStroke color of polygon auto snap progress animation. Default is green. Can't be nil.
Optional
polygonWhether polygon auto snap progress animation is enabled or not. Default is true.
Optional
polygonLine width of polygon auto snap progress animation. Default is 5.0.
Optional
polygonThe 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).
Optional
polygonThe background color of the detected document outline when we are ready to snap OK.
Optional
polygonThe 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).
Optional
polygonThe color of the detected document outline when we are ready to snap OK.
Optional
polygonThe radius to use when drawing rounded corners of the polygon. Default is 8.0.
Optional
polygonWidth of the detected document outline.
Optional
preferredAn optional array of aspect ratios the documents may conform to.
Optional
requiredAn optional array of aspect ratios the documents have to conform to.
Optional
shutterWhether polygon auto snap progress animation is enabled or not. Default is true.
Optional
shutterThe background color of the shutter button in auto-snapping mode.
Optional
shutterHides 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.
Optional
shutterThe indicator color of the shutter button in auto-snapping mode. iOS only.
Optional
shutterThe foreground color of the shutter button in manual mode.
Optional
shutterThe background color of the shutter button in manual mode.
Optional
stopsThe camera session will be stopped entirely, when the receiver disappears and restarts when the receiver reappears if set to True else will pause the delivery of video frames and QR Codes. Defaults to True. iOS only.
Optional
textText hint that will be shown when the current detection status is OK_BUT_BAD_ANGLES
Optional
textText hint that will be shown when the current detection status is OK_BUT_BAD_ASPECT_RATIO
Optional
textThe text being displayed on the user-guidance label, when the scanners energy saver is activated. iOS only.
Optional
textText hint that will be shown when the current detection status is ERROR_NOTHING_DETECTED
Optional
textText hint that will be shown when the current detection status is OK
Optional
textThe text being displayed on the user-guidance label, when a document was detected, but its center is too far away from the image center.
Optional
textText hint that will be shown when the current detection status is ERROR_TOO_DARK
Optional
textText hint that will be shown when the current detection status is ERROR_TOO_NOISY
Optional
textText hint that will be shown when the current detection status is OK_BUT_TOO_SMALL
Optional
topThe background color of the top toolbar.
Optional
topThe color of all active toggle buttons in the toolbar.
Optional
topThe color of all inactive toggle buttons in the toolbar.
Optional
touchWhether touch-to-focus is enabled on camera preview. Enabled by default. Android only.
Optional
useControls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
Optional
userThe background color of the user guidance hints.
Optional
userFont size of the user guidance. Default is 17.0.
Optional
userThe text color of the user guidance hints.
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. Default is 75.0.