capacitor-plugin-dynamsoft-barcode-reader
A capacitor plugin for Dynamsoft Barcode Reader
Supported Platforms
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:
Demo
https://github.com/xulihang/capacitor-qr-code-scanner
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> |
Supported Barcode Symbologies
- Code 39
- Code 93
- Code 128
- Codabar
- EAN-8
- EAN-13
- UPC-A
- UPC-E
- Interleaved 2 of 5 (ITF)
- Industrial 2 of 5 (Code 2 of 5 Industry, Standard 2 of 5, Code 2 of 5)
- ITF-14
- QRCode
- DataMatrix
- PDF417
- GS1 DataBar
- Maxicode
- Micro PDF417
- Micro QR
- PatchCode
- GS1 Composite
- Postal Code
- Dot Code