ScanConfiguration

constructor(source: ScanConfiguration.Source = Source.CAMERA, sourceImage: File? = null, multiPage: Boolean = true, defaultFilter: ScanConfiguration.Filter = Filter.AUTOMATIC, availableFilters: List<ScanConfiguration.Filter> = listOf( Filter.NONE, Filter.AUTOMATIC, Filter.AUTOMATIC_MONOCHROME, Filter.AUTOMATIC_BLACK_AND_WHITE, Filter.AUTOMATIC_COLOR, Filter.PHOTO ), pdfPageSize: ScanConfiguration.PdfPageSize = PdfPageSize.FIT, postProcessingActions: EnumSet<ScanConfiguration.Action> = Action.ALL, defaultCurvatureCorrection: ScanConfiguration.CurvatureCorrectionMode = CurvatureCorrectionMode.DISABLED, photoLibraryButtonHidden: Boolean = false, flashButtonHidden: Boolean = false, defaultFlashMode: ScanConfiguration.FlashMode = FlashMode.OFF, backgroundColor: Int = Color.BLACK, foregroundColor: Int = Color.WHITE, highlightColor: Int = Color.BLUE, jpegQuality: Int = 60, pdfMaxScanDimension: Int = 0, multiPageFormat: ScanConfiguration.MultiPageFormat = MultiPageFormat.PDF, pdfFontFile: File? = null, ocrConfiguration: ScanConfiguration.OcrConfiguration? = null, structuredData: EnumSet<ScanConfiguration.StructuredData> = EnumSet.noneOf(StructuredData::class.java), useLegacyCameraAPI: Boolean = false)