com.getsensibill.capturestandalone.models / CaptureConfig
CaptureConfig
data class CaptureConfig : Serializable
Configuration class to be sent to CaptureStandaloneActivity. This class defines the configurable behaviour for CaptureStandaloneActivity
Constructors
| Name | Summary |
|---|---|
| <init> | CaptureConfig(allowFlashToggling: Boolean = true, defaultFlashMode: FlashMode = FlashMode.FLASH_MODE_AUTO, enableAutoCapture: Boolean = true, initialAutoCaptureState: Boolean = true, enableBlurDetection: Boolean = true, enableFeedbackToast: Boolean = true, enableGalleryImport: Boolean = true, enableMultiPageCapture: Boolean = true, maxPages: Int = 3, enableLongCapture: Boolean = true, enableCrop: Boolean = true, enableSecureWindow: Boolean = false, attachLocationData: Boolean = false)Configuration class to be sent to CaptureStandaloneActivity. This class defines the configurable behaviour for CaptureStandaloneActivity |
Properties
| Name | Summary |
|---|---|
| allowFlashToggling | val allowFlashToggling: BooleanAllows the user to toggle the flash mode. |
| attachLocationData | val attachLocationData: BooleanEnables attaching GPS location data via EXIF to captured images. |
| defaultFlashMode | val defaultFlashMode: FlashModeSets the default flash mode that will be used by the camera |
| enableAutoCapture | val enableAutoCapture: BooleanEnables the auto-capture feature. |
| enableBlurDetection | val enableBlurDetection: BooleanEnables the blur detection feature. |
| enableCrop | val enableCrop: BooleanEnables the user to manually crop, or adjust the existing cropping on a captured image. |
| enableFeedbackToast | val enableFeedbackToast: BooleanEnables a feedback toast message on the capture screen. |
| enableGalleryImport | val enableGalleryImport: BooleanEnables the ability for a user to select an image from their device’s image gallery. |
| enableLongCapture | val enableLongCapture: BooleanEnables the long receipt feature. |
| enableMultiPageCapture | val enableMultiPageCapture: BooleanAllows the user to capture multiple distinct images in a single capture flow. |
| enableSecureWindow | val enableSecureWindow: BooleanEnables Android’s secure window feature for the capture flow. When enabled, the user will be unable to take screenshots or record the screen. |
| initialAutoCaptureState | val initialAutoCaptureState: BooleanSets the initial state of the auto-capture functionality (true represents ON). |
| maxPages | val maxPages: IntDetermines the maximum number of distinct images that can be captured in a single capture flow. |