Skip to content

feat: support multiple barcode format hints#43

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

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

Conversation

@DotHyphon

Copy link
Copy Markdown

Adds hints: [OSBARCScannerHint]? to OSBARCScanParameters as an additive companion to the existing single hint. When non-empty, hints takes precedence and the Vision request''s symbologies is built from the de-duplicated union of mapped VNBarcodeSymbology values.

.unknown anywhere in the list short-circuits to scan-all, matching the "ALL" sentinel behavior of single-hint mode. UPC-A/EAN-13 disambiguation extends naturally to the list path.

Backward compatible: single-hint convenience init retained on the decoder; existing call sites unaffected.

Add `hints: [OSBARCScannerHint]?` to OSBARCScanParameters as an
additive companion to the existing single `hint`. When non-empty,
`hints` takes precedence and the Vision request's `symbologies` is
built from the de-duplicated union of mapped VNBarcodeSymbology values.

`.unknown` anywhere in the list short-circuits to scan-all, matching
the "ALL" sentinel behavior of single-hint mode. UPC-A/EAN-13
disambiguation extends naturally to the list path.

Backward compatible: single-hint convenience init retained on the
decoder; existing call sites unaffected.
@DotHyphon DotHyphon force-pushed the feat/multi-hint-array branch from a59a6ae to e3e804d Compare April 28, 2026 00:35
@DotHyphon DotHyphon marked this pull request as ready for review April 28, 2026 00:40
@DotHyphon DotHyphon requested a review from a team as a code owner April 28, 2026 00:40
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