Draft
Conversation
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add API to save generated barcode images with permissions
Add API to save generated barcode images
Oct 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #96, fixes #80
This PR adds comprehensive functionality to generate and save barcode images programmatically, addressing user requests for saving barcodes created with
BarcodeGeneratorView.Overview
Users can now generate barcode images without requiring a view and save them to files or streams across all supported platforms (Android, iOS, MacCatalyst, and Windows).
Key Features
1. BarcodeGenerator Class
A new class for programmatic barcode generation without requiring a view:
2. Platform-Specific Save Extensions
Extension methods to save barcode images to files or streams:
Supported formats by platform:
3. BarcodeGeneratorView Integration
Added
GenerateBarcodeAsync()method to existingBarcodeGeneratorViewcontrols:Documentation
The README has been updated with comprehensive documentation including:
WRITE_EXTERNAL_STORAGE,READ_EXTERNAL_STORAGE(API ≤32),READ_MEDIA_IMAGES(API ≥33)NSPhotoLibraryAddUsageDescription(for photo library access)picturesLibrary,documentsLibrarycapabilities (optional)Sample App
The BigIslandBarcode sample app now includes a save button (💾) that demonstrates the new functionality by saving the displayed barcode to the app's data directory.
Implementation Notes
WidthRequest/HeightRequestinstead ofWidth/Heightto avoid issues with unmeasured viewsOriginal prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.