qr-vision
v4.0.0
Published
A fast and efficient QR code scanner using mobile vision for Capacitor
Downloads
5
Readme
qr-vision
A fast and efficient QR code scanner using mobile vision for Capacitor
Install
npm install qr-vision
npx cap sync
API
start()
start() => any
Set up preview and start scanning for qr codes.
Returns: any
stop()
stop() => any
Destroy preview and stop scanning for qr codes.
Returns: any
addListener(...)
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()
removeAllListeners() => any
Remove all the listeners that are attached to this plugin.
Returns: any
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ------------------------- |
| remove
| () => any |