Discover Packages
github.com/CodeSyncr/nimbus-native
plugins
barcode
package
Version:
v0.0.14
Opens a new window with list of versions in this module.
Published: Nov 10, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package barcode scans QR codes and barcodes with the camera, on a screen
of its own.
nimbus native plugin add barcode
code, err := barcode.Scan(ctx)
if plugin.IsCode(err, plugin.Cancelled) { return }
type Code struct {
Value string `json:"value"`
Format string `json:"format"`
}
Code is what was scanned.
Scan opens the scanner and returns the first code it reads. It fails with
plugin.Cancelled if they back out, and plugin.Unavailable where there's no
camera, as on the iOS simulator. Android uses Google Play services' scanner.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.