capacitor-plugin-dynamsoft-barcode-reader
A capacitor plugin for Dynamsoft Barcode Reader
Install
npm install capacitor-plugin-dynamsoft-barcode-reader
npx cap sync
Or install from a local folder
npm install <path-to-the-project>
npx cap sync
Dependent frameworks for iOS will be downloaded automatically via postinstall script. You can also download them and put them under the plugin's folder by yourself:
API
startScan(...)
startScan(options: ScanOptions) => Promise<void>
toggleTorch(...)
toggleTorch(options: { on: boolean; }) => Promise<void>
Param | Type |
---|
options | { on: boolean; } |
stopScan()
stopScan() => Promise<void>
destroy()
destroy() => Promise<void>
addListener(...)
addListener(eventName: 'onFrameRead', listenerFunc: onFrameReadListener) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|
eventName | "onFrameRead" |
listenerFunc | (results: ScanResult[]) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
removeAllListeners()
removeAllListeners() => Promise<void>
Interfaces
ScanOptions
Prop | Type |
---|
license | string |
organizationID | string |
dceLicense | string |
template | string |
continuous | boolean |
PluginListenerHandle
Prop | Type |
---|
remove | () => Promise<void> |