startDocumentScanner abstract method
Future<void>
startDocumentScanner({
- required int maximumNumberOfPages,
- required bool galleryImportAllowed,
- required MlkitDocumentScannerMode scannerMode,
- required DocumentScannerResultMode resultMode,
This method starts the document scanner. It tries to mimic the official API as much as possible. Refer to this URL for more information: https://developers.google.com/ml-kit/vision/doc-scanner.
maximumNumberOfPagessets the limit to the number of pages scanned.galleryImportAllowedenable or disable the capability to import from the photo gallery.scannerModecustomize the editing functionalities available to the user by choosing from 3 modes available in MlkitDocumentScannerMode.resultModesets the result format, this is, either JPEG pages or a single PDF document. This will determine which stream (jpegScanResults or pdfScanResults) will receive updates.
Implementation
Future<void> startDocumentScanner({
required int maximumNumberOfPages,
required bool galleryImportAllowed,
required MlkitDocumentScannerMode scannerMode,
required DocumentScannerResultMode resultMode,
});