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. You can also download them and put them under the plugin's folder by yourself:
API
scan(...)
scan(_options: { license?: string; organizationID?: string; dceLicense?: string; template?: string; }) => Promise<{ barcodeText: string; barcodeFormat: string; barcodeBytesBase64: string; }>
Param | Type |
---|
_options | { license?: string; organizationID?: string; dceLicense?: string; template?: string; } |
Returns: Promise<{ barcodeText: string; barcodeFormat: string; barcodeBytesBase64: string; }>
toggleTorch(...)
toggleTorch(_options: { on: boolean; }) => Promise<void>
Param | Type |
---|
_options | { on: boolean; } |
stopScan()
stopScan() => Promise<void>