Skip to content

feat: support multiple barcode format hints#53

Open
DotHyphon wants to merge 1 commit into
OutSystems:mainfrom
DotHyphon:feat/multi-hint-array
Open

feat: support multiple barcode format hints#53
DotHyphon wants to merge 1 commit into
OutSystems:mainfrom
DotHyphon:feat/multi-hint-array

Conversation

@DotHyphon

Copy link
Copy Markdown

Adds hints: List<OSBARCScannerHint>? to OSBARCScanParameters as an additive companion to the existing single hint. When non-empty, hints takes precedence and pre-filters the decoder (MLKit setBarcodeFormats / ZXing POSSIBLE_FORMATS) to that set.

UNKNOWN anywhere in the list short-circuits to scan-all, matching the "ALL" sentinel behavior of single-hint mode.

Backward compatible: existing single-hint constructors retained on helpers; positional callers of OSBARCScanParameters unaffected.

Add `hints: List<OSBARCScannerHint>?` to OSBARCScanParameters as an
additive companion to the existing single `hint`. When non-empty,
`hints` takes precedence and pre-filters the decoder (MLKit
setBarcodeFormats / ZXing POSSIBLE_FORMATS) to that set.

UNKNOWN anywhere in the list short-circuits to scan-all, matching the
"ALL" sentinel behavior of single-hint mode.

Backward compatible: existing single-hint constructors retained on
helpers; positional callers of OSBARCScanParameters unaffected.
@DotHyphon DotHyphon marked this pull request as ready for review April 28, 2026 00:27
@DotHyphon DotHyphon requested a review from a team as a code owner April 28, 2026 00:27
@DotHyphon DotHyphon requested review from ItsChaceD, OS-ruimoreiramendes, andredestro, eric-horodyski, markemer and theproducer and removed request for a team April 28, 2026 00:27
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.

1 participant