scanning items
npm install scan-plugin
npx cap sync
testPluginMethod(...)
startScan()
init()
StopDecoding()
getVersion()
StartDecoding()
getValue()
Decoder()
CommState()
_Decoder()
_CommState()
addListener('decodedDataReceived', ...)
- Interfaces
testPluginMethod(options: { msg: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ msg: string; } |
Returns: Promise<{ value: string; }>
startScan() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
init() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
StopDecoding() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
getVersion() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
StartDecoding() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
getValue() => Promise<{ value: string; type: any; }>
Returns: Promise<{ value: string; type: any; }>
Decoder() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
CommState() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
_Decoder() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
_CommState() => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
addListener(eventName: 'decodedDataReceived', listenerFunc: (data: { codeType: number; data: string; }) => void) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName |
'decodedDataReceived' |
listenerFunc |
(data: { codeType: number; data: string; }) => void |
Returns: Promise<PluginListenerHandle>
Prop | Type |
---|---|
remove |
() => Promise<void> |