swipe-capacitor-linea-pro-barcode-scanner
v6.0.3
Published
capacitor linea pro barcode scanner plugin
Downloads
3
Readme
Capacitor Linea Pro Barcode Scanner
Capacitor Linea Pro Barcode Scanner plugin
Install
npm install swipe-capacitor-linea-pro-barcode-scanner
npx cap sync
API
echo(...)
connect()
getConnectionState()
addListener('getBarcodeData', ...)
addListener('deviceConnected', ...)
- Interfaces
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
connect()
connect() => Promise<{ result: any; }>
Returns: Promise<{ result: any; }>
getConnectionState()
getConnectionState() => Promise<{ result: any; }>
Returns: Promise<{ result: any; }>
addListener('getBarcodeData', ...)
addListener(eventName: 'getBarcodeData', listenerFunc: (data: any) => void) => Promise<PluginListenerHandle>
| Param | Type |
| ------------------ | ----------------------------------- |
| eventName
| 'getBarcodeData' |
| listenerFunc
| (data: any) => void |
Returns: Promise<PluginListenerHandle>
addListener('deviceConnected', ...)
addListener(eventName: 'deviceConnected', listenerFunc: (data: any) => void) => Promise<PluginListenerHandle>
| Param | Type |
| ------------------ | ----------------------------------- |
| eventName
| 'deviceConnected' |
| listenerFunc
| (data: any) => void |
Returns: Promise<PluginListenerHandle>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |