Feature Switching

You can customize the experience and features available in the Capture through the use of feature toggles.

Capture can attach current location metadata to the EXIF of captured images, nd can preserve the location metadata for images selected from the photo gallery on Android and photo library on iOS (if available). With default configuration, Capture does not collect location metadata, and does not preserve location metadata for images selected from the photo gallery / library. Follow the steps below to enable location metadata collection.

Available Feature Toggles

DescriptionDefault valueiOS PropertyAndroid Property
Enables the auto-capture featuretrueenableAutoCaptureenableAutoCapture
Starts the capture screen with auto-capture mode
Note: auto-capture feature must be enabled
truedefaultToAutoCaptureinitialAutoCaptureState
Enables the ability to toggle the phone’s flash on/off to help capture in low-light situationstrueenableFlashallowFlashToggling
(Android only) Sets the flash mode that will be set by default when the capture flow begins
Note: flash feature must be enabled
FlashMode.FLASH_MODE_AUTON/AdefaultFlashMode
Enables the tips featuretrueenableCaptureTipsenableCaptureTips
Enables the visibility of feedback while capturing document.trueenableCaptureProgressFeedbackenableCaptureProgressFeedback
Enables the user to select an image from their phone’s image gallerytrueenableImageGalleryenableGalleryImport
Enables the long document capture feature - capturing a longer document composed from a top and bottom imagetrueenableLongCaptureenableLongCapture
Enables toast on the long document capture screen.
Note: Long document capture must be enabled.
trueenableLongReceiptPageToastenableLongReceiptPageToast
Enables the ability to crop captured imagestrueenableCropenableCrop
Determines the maximum number of documents a user can capture in a single capture session. The number must be in 1-10 range.1maxImagesmaxImages
Enables the ability to attach the device’s current location to the image being captured. Requires location permission to have been granted by the user before launching capture. Ensure your app has appropriate location permissionfalseattachLocationDataattachLocationData
Ensures that the images returned as a result of capture comply with the size and quality requirements of Sensibill API.
Note: this flag can only be changed if using standalone capture.
truecompressForSensibillApicompressForSensibillApi
(Android only) Will cause the capture flow to set the WindowManager.LayoutParams.FLAG_SECURE flag in order to prevent users from taking screenshots from within the flowfalseN/AenableSecureWindow
(Android only) Informs capture what type of document is being captured. Currently, this changes some configuration restrictions and what types of strings are displayed to the userCaptureDocumentType.RECEIPTN/AdocumentType
(Android only) A bundle of string resource references defining what string resources will be used in some document type specific locations (eg. “top of receipt” vs “top of invoice”)DocumentTypeStrings.defaultReceiptStringsN/AdocumentTypeStrings
(iOS only) Enables a blur warning on the preview screen after capturingtrueenableBlurDetection
(Note: this feature is only available on the iPhone 6s and newer)
N/A

Implementation Details