This page is applicable to version 8.2.3
Javascript API Reference - BarcodeReader
Accessors
Accessors | Description |
---|---|
engineResourcePath | Get or set the engine (WASM) location. |
productKeys | Get or set the Dynamsoft Barcode Reader SDK product keys. |
version | Get current version. |
engineResourcePath
Get or set the Barcode Reader SDK engine path. The path should lead to a folder containing the distributed JS and WASM files.
engineResourcePath = value
Property Value
value
string
Sample
Dynamsoft.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/";
await Dynamsoft.BarcodeReader.loadWasm();
productKeys
Get or set the Barcode Reader SDK product key. Please visit our user portal to obtain a trial license.
get
productKeys = keys
Property Value
keys
string
Sample
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
version
Get the currently used version of Barcode Reader SDK.
version returns string
Return Value
string