barcode-scanner
Later
Install
npm install barcode-scanner
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
addListener('BroadcastReceiverEvent', ...)
addListener(eventName: 'BroadcastReceiverEvent', listenerFunc: (barcode: { result: string; }) => void) => PluginListenerHandle
Param | Type |
---|
eventName | 'BroadcastReceiverEvent' |
listenerFunc | (barcode: { result: string; }) => void |
Returns: PluginListenerHandle
addListener('buttonClicked', ...)
addListener(eventName: 'buttonClicked', listenerFunc: (keyCode: { result: string; }) => void) => PluginListenerHandle
Param | Type |
---|
eventName | 'buttonClicked' |
listenerFunc | (keyCode: { result: string; }) => void |
Returns: PluginListenerHandle
scanInit()
scanInit() => Promise<void>
scanDestroy()
scanDestroy() => Promise<void>
beginScan()
beginScan() => Promise<void>
stopScan()
stopScan() => Promise<void>
Interfaces
PluginListenerHandle
Prop | Type |
---|
remove | () => Promise<void> |