Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
License Control
license
Specify an online license or an offline license. Dynamsoft usually provides an online license.
license
needs to be set before createInstance()
or loadWasm()
.
NOTE:
Another way to set the license is to use the
script
tag’sdata-license
attribute.
static license: string
Code Snippet
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode/dist/dbr.js" data-license="YOUR-LICENSE-KEY"></script>
or
Dynamsoft.DBR.BarcodeReader.license = "YOUR-LICENSE-KEY";
deviceFriendlyName
Sets a human-readable name that identifies the device. This name will appear in the device details table when you check the statistics of the according license.
static deviceFriendlyName: string
Default value
""
Code Snippet
Dynamsoft.DBR.BarcodeReader.deviceFriendlyName = "Harry-Potter-iPhone";