-
- All Implemented Interfaces:
-
java.io.Serializable
public final class DocumentScannerConfiguration implements Serializable
A configuration class used to alter the default scan behaviour.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanallowCaptureModeSettingprivate BooleanautoCaptureprivate ScanFilterdefaultScanFilterprivate PageEditConfigurationpageEditConfigprivate Integerthemeprivate IntegeronboardingImageSourceprivate ColorConfigurationcolorConfigprivate Sourcesourceprivate List<File>sourceImagesprivate BooleanautoCropprivate BooleanmultiPage
-
Constructor Summary
Constructors Constructor Description DocumentScannerConfiguration()
-
Method Summary
Modifier and Type Method Description final BooleangetAllowCaptureModeSetting()If true, the toolbar will display an Item allowing the user to switch between auto capture and manual capture. final UnitsetAllowCaptureModeSetting(Boolean allowCaptureModeSetting)If true, the toolbar will display an Item allowing the user to switch between auto capture and manual capture. final BooleangetAutoCapture()final UnitsetAutoCapture(Boolean autoCapture)final ScanFiltergetDefaultScanFilter()final UnitsetDefaultScanFilter(ScanFilter defaultScanFilter)final PageEditConfigurationgetPageEditConfig()Configuration class used to alter the default page editing behaviour. final UnitsetPageEditConfig(PageEditConfiguration pageEditConfig)Configuration class used to alter the default page editing behaviour. final IntegergetTheme()Your custom theme if you like to change colors to match your branding. final UnitsetTheme(Integer theme)Your custom theme if you like to change colors to match your branding. final IntegergetOnboardingImageSource()Your custom image for the onboarding dialog that appears when scan is opened for the first time. final UnitsetOnboardingImageSource(Integer onboardingImageSource)Your custom image for the onboarding dialog that appears when scan is opened for the first time. final ColorConfigurationgetColorConfig()final UnitsetColorConfig(ColorConfiguration colorConfig)final SourcegetSource()Select the source for the document scanner. final UnitsetSource(Source source)Select the source for the document scanner. final List<File>getSourceImages()The source images for the document scanner if you have set the source to Source.IMAGE. final UnitsetSourceImages(List<File> sourceImages)The source images for the document scanner if you have set the source to Source.IMAGE. final BooleangetAutoCrop()If true, image gets automatically cropped if document was detected. final UnitsetAutoCrop(Boolean autoCrop)If true, image gets automatically cropped if document was detected. final BooleangetMultiPage()If true, scanning multi page documents is possible. final UnitsetMultiPage(Boolean multiPage)If true, scanning multi page documents is possible. -
-
Method Detail
-
getAllowCaptureModeSetting
final Boolean getAllowCaptureModeSetting()
If true, the toolbar will display an Item allowing the user to switch between auto capture and manual capture. Defaults to false.
-
setAllowCaptureModeSetting
final Unit setAllowCaptureModeSetting(Boolean allowCaptureModeSetting)
If true, the toolbar will display an Item allowing the user to switch between auto capture and manual capture. Defaults to false.
-
getAutoCapture
final Boolean getAutoCapture()
-
setAutoCapture
final Unit setAutoCapture(Boolean autoCapture)
-
getDefaultScanFilter
final ScanFilter getDefaultScanFilter()
-
setDefaultScanFilter
final Unit setDefaultScanFilter(ScanFilter defaultScanFilter)
-
getPageEditConfig
final PageEditConfiguration getPageEditConfig()
Configuration class used to alter the default page editing behaviour.
-
setPageEditConfig
final Unit setPageEditConfig(PageEditConfiguration pageEditConfig)
Configuration class used to alter the default page editing behaviour.
-
getTheme
final Integer getTheme()
Your custom theme if you like to change colors to match your branding.
-
setTheme
final Unit setTheme(Integer theme)
Your custom theme if you like to change colors to match your branding.
-
getOnboardingImageSource
final Integer getOnboardingImageSource()
Your custom image for the onboarding dialog that appears when scan is opened for the first time.
-
setOnboardingImageSource
final Unit setOnboardingImageSource(Integer onboardingImageSource)
Your custom image for the onboarding dialog that appears when scan is opened for the first time.
-
getColorConfig
final ColorConfiguration getColorConfig()
-
setColorConfig
final Unit setColorConfig(ColorConfiguration colorConfig)
-
getSource
final Source getSource()
Select the source for the document scanner. Defaults to Source.CAMERA. See Source for possible values.
-
setSource
final Unit setSource(Source source)
Select the source for the document scanner. Defaults to Source.CAMERA. See Source for possible values.
-
getSourceImages
final List<File> getSourceImages()
The source images for the document scanner if you have set the source to Source.IMAGE.
-
setSourceImages
final Unit setSourceImages(List<File> sourceImages)
The source images for the document scanner if you have set the source to Source.IMAGE.
-
getAutoCrop
final Boolean getAutoCrop()
If true, image gets automatically cropped if document was detected. This applies only when source is Source.IMAGE or Source.GALLERY or Source.GALLERY_MULTIPLE. Defaults to true.
-
setAutoCrop
final Unit setAutoCrop(Boolean autoCrop)
If true, image gets automatically cropped if document was detected. This applies only when source is Source.IMAGE or Source.GALLERY or Source.GALLERY_MULTIPLE. Defaults to true.
-
getMultiPage
final Boolean getMultiPage()
If true, scanning multi page documents is possible. Set this to false if you need to scan single page documents. Defaults to true.
-
setMultiPage
final Unit setMultiPage(Boolean multiPage)
If true, scanning multi page documents is possible. Set this to false if you need to scan single page documents. Defaults to true.
-
-
-
-