Skip to content

Comments

[SDC-29853] Fix Frameworks Code Snippets#317

Open
ilber wants to merge 19 commits intomainfrom
fix/SDC-29853-code-snippets-related-to-frameworks
Open

[SDC-29853] Fix Frameworks Code Snippets#317
ilber wants to merge 19 commits intomainfrom
fix/SDC-29853-code-snippets-related-to-frameworks

Conversation

@ilber
Copy link
Member

@ilber ilber commented Feb 24, 2026

In addition to the fixes on the code snippets for Flutter, React-Native, Cordova, Capacitor and Titanium I have also updated the DataCaptureContext initialization pattern across Flutter, Capacitor, Cordova, and React Native docs

This MR updates the documentation to reflect the new DataCaptureContext API, where initialization is done once via an async call and the context is accessed afterwards through a shared instance.

Code snippets

  • Replaced DataCaptureContext.forLicenseKey(...) with await DataCaptureContext.initialize(...) across all affected get-started and barcode-generator guides
  • Updated all subsequent references to the context variable (context, dataCaptureContext) to use DataCaptureContext.sharedInstance

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.

3 participants