barcode-continuos
v0.0.2
Published
Continuos bar scanning
Downloads
193
Readme
barcode-continuos
Continuos bar scanning
Install
npm install barcode-continuos
npx cap syncAPI
startScan(...)stopScan()showMessage(...)addListener('barcodeScanned', ...)removeAllListeners()- Interfaces
startScan(...)
startScan(options: StartScanOptions) => Promise<void>| Param | Type |
| ------------- | ------------------------------------------------------------- |
| options | StartScanOptions |
stopScan()
stopScan() => Promise<void>showMessage(...)
showMessage(options: { message: string; durationMs?: number; textColor?: string; backgroundColor?: string; }) => Promise<void>| Param | Type |
| ------------- | ---------------------------------------------------------------------------------------------------- |
| options | { message: string; durationMs?: number; textColor?: string; backgroundColor?: string; } |
addListener('barcodeScanned', ...)
addListener(eventName: 'barcodeScanned', listenerFunc: (data: { value: string; }) => void) => Promise<PluginListenerHandle>| Param | Type |
| ------------------ | -------------------------------------------------- |
| eventName | 'barcodeScanned' |
| listenerFunc | (data: { value: string; }) => void |
Returns: Promise<PluginListenerHandle>
removeAllListeners()
removeAllListeners() => Promise<void>Interfaces
StartScanOptions
| Prop | Type |
| ------------- | ------------------------------------- |
| mode | 'single' | 'continuous' |
| delayMs | number |
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
