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
scan(...)
scan(options: ScanOptions) => Promise<{ results: ScanResult[]; }>
Returns: Promise<{ results: ScanResult[]; }>
toggleTorch(...)
toggleTorch(options: { on: boolean; }) => Promise<void>
Param | Type |
---|
options | { on: boolean; } |
stopScan()
stopScan() => Promise<void>
destroy()
destroy() => Promise<void>
Interfaces
ScanResult
Prop | Type |
---|
barcodeText | string |
barcodeFormat | string |
barcodeBytesBase64 | string |
ScanOptions
Prop | Type |
---|
license | string |
organizationID | string |
dceLicense | string |
template | string |