Skip to content

Feature/android scanner mode#130

Open
MazterGD wants to merge 2 commits into
jachzen:masterfrom
MazterGD:feature/android-scanner-mode
Open

Feature/android scanner mode#130
MazterGD wants to merge 2 commits into
jachzen:masterfrom
MazterGD:feature/android-scanner-mode

Conversation

@MazterGD
Copy link
Copy Markdown

@MazterGD MazterGD commented May 4, 2026

This pull request adds support for configuring the ML Kit scanner mode on Android, allowing developers to choose between different scanning pipelines (full, base, or base with filter). It introduces a new AndroidScannerMode enum in the Dart API, updates the Android implementation to respect this setting, and documents the new feature in the README. No changes are made to iOS scanning behavior.

Android scanner mode support:

  • Added a new AndroidScannerMode enum in lib/src/android_scanner_mode.dart to represent available ML Kit scanner modes and expose them in the Dart API.
  • Updated CunningDocumentScanner.getPictures to accept an optional androidScannerMode parameter, defaulting to full, and pass it to the platform channel. [1] [2]
  • Exported android_scanner_mode.dart from the main library file for public use.

Android implementation changes:

  • Modified the plugin Kotlin code to accept the scanner mode from the method call, resolve the correct ML Kit constant, and configure the scanner accordingly. [1] [2]
  • Imported the necessary ML Kit scanner mode constants.

Documentation:

  • Updated the README to document the new androidScannerMode parameter and clarify that scanner mode selection is not available on iOS.

@natraj2512
Copy link
Copy Markdown

Hi @jachzen,

Thank you for the new changes.
May I know when we can expect a new package release with these updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants