Skip to content

Add BarcodeScanner feedback guidance#895

Open
Vetle444 wants to merge 3 commits into
mainfrom
vefi/feedbackScanning
Open

Add BarcodeScanner feedback guidance#895
Vetle444 wants to merge 3 commits into
mainfrom
vefi/feedbackScanning

Conversation

@Vetle444

Copy link
Copy Markdown
Contributor

Description of Change

Adds BarcodeScanner feedback guidance for scan rectangle barcode scanning:

  • Shows validation failure messages above the scan rectangle when rejected results include an error message.
  • Adds success and error haptics for accepted and rejected barcode feedback.
  • Adds BarcodeScannerStartOptions.Hint with BarcodeScannerHintOptions for delayed camera zoom tips, including CanShowHintAsync and OnHintShownAsync hooks.
  • Adds a Barcode Scanner feedback sample demonstrating validation messages, tooltip text, automatic zoom tips, and the updated scanner flow.
  • Updates the Camera wiki page and changelog entry for the new BarcodeScanner behavior.

Validation performed:

  • dotnet build src/app/Components/Components.csproj -f net10.0-ios -v minimal -clp:ErrorsOnly
  • git diff --cached --check

Todos

  • I have tested on an Android device.
  • I have tested on an iOS device.
  • I have supported accessibility

Copilot AI review requested due to automatic review settings June 10, 2026 13:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds user-facing feedback improvements to the BarcodeScanner scan-rectangle flow, including inline validation messaging above the scan rectangle, haptic feedback for accepted/rejected scans, and an opt-in delayed zoom “hint” tip mechanism. Also updates the wiki, changelog, and Components sample app to document and demonstrate the new behavior.

Changes:

  • Display short validation rejection messages above the scan rectangle during the failure animation.
  • Add success/error haptics for accepted/rejected barcode results and introduce BarcodeScannerStartOptions.Hint (BarcodeScannerHintOptions) for delayed zoom tips.
  • Add a new “Barcode scanner feedback” sample and update docs/changelog accordingly.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
wiki/Media/Camera.md Documents validation feedback messages and the new Hint options usage.
src/library/DIPS.Mobile.UI/API/Camera/BarcodeScanning/Overlay/BarcodeScanRectangleOverlay.cs Implements the inline feedback message UI/animation above the scan rectangle.
src/library/DIPS.Mobile.UI/API/Camera/BarcodeScanning/BarcodeScanSession.cs Adds success/error vibration feedback for accept/reject paths.
src/library/DIPS.Mobile.UI/API/Camera/BarcodeScanning/BarcodeScannerStartOptions.cs Adds Hint property to configure automatic hint behavior.
src/library/DIPS.Mobile.UI/API/Camera/BarcodeScanning/BarcodeScannerHintOptions.cs New options type for delayed zoom hint and related callbacks.
src/library/DIPS.Mobile.UI/API/Camera/BarcodeScanning/BarcodeScanner.cs Schedules and manages the automatic hint timer lifecycle across scanner states.
src/app/Components/Resources/LocalizedStrings/LocalizedStrings.resx Adds nb strings for the new feedback sample.
src/app/Components/Resources/LocalizedStrings/LocalizedStrings.en.resx Adds en strings for the new feedback sample.
src/app/Components/Resources/LocalizedStrings/LocalizedStrings.Designer.cs Updates generated accessors for new localized strings.
src/app/Components/ComponentsSamples/BarcodeScanning/BarcodeScanningHubSamples.xaml.cs Wires navigation to the new feedback sample.
src/app/Components/ComponentsSamples/BarcodeScanning/BarcodeScanningHubSamples.xaml Adds a hub list entry for the feedback sample using localized strings.
src/app/Components/ComponentsSamples/BarcodeScanning/BarcodeFeedbackSample.xaml.cs New sample demonstrating validation messaging, tooltip, and automatic zoom hint.
src/app/Components/ComponentsSamples/BarcodeScanning/BarcodeFeedbackSample.xaml New sample page layout hosting CameraPreview.
CHANGELOG.md Adds a public entry describing the new BarcodeScanner feedback behavior.
Files not reviewed (1)
  • src/app/Components/Resources/LocalizedStrings/LocalizedStrings.Designer.cs: Language not supported

@Vetle444 Vetle444 enabled auto-merge (squash) June 11, 2026 09:29
@Vetle444 Vetle444 disabled auto-merge June 11, 2026 09:29
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