capacitor-sunmi-broadcast
v0.0.1
Published
Use broadcast Android capability for SUNMI devices
Downloads
3
Maintainers
Readme
capacitor-sunmi-broadcast
Use broadcast
Install
npm install capacitor-sunmi-broadcast
npx cap syncAPI
addListener('sunmiScan', ...)
addListener(eventName: 'sunmiScan', listener: (payload: SunmiPayload) => void) => Promise<{ remove: () => void; }>| Param | Type |
| --------------- | --------------------------------------------------------------------------- |
| eventName | 'sunmiScan' |
| listener | (payload: SunmiPayload) => void |
Returns: Promise<{ remove: () => void; }>
Interfaces
SunmiPayload
| Prop | Type |
| ------------------------ | ------------------- |
| action | string |
| data | string |
| source_byte_base64 | string |
