A fast and efficient QR code scanner using mobile vision for Capacitor
npm install qr-vision
npx cap sync
start() => any
Set up preview and start scanning for qr codes.
Returns: any
stop() => any
Destroy preview and stop scanning for qr codes.
Returns: any
addListener(eventName: 'qrVisionResult', listenerFunc: ScanResultListener) => Promise<PluginListenerHandle> & PluginListenerHandle
Add a listener for scan results
Param | Type |
---|---|
eventName |
"qrVisionResult" |
listenerFunc |
(event: ScanResult) => void |
Returns: any
removeAllListeners() => any
Remove all the listeners that are attached to this plugin.
Returns: any
Prop | Type |
---|---|
remove |
() => any |