Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.45 KB

File metadata and controls

59 lines (43 loc) · 1.45 KB
layout title description keywords needAutoGenerateSidebar needGenerateH3Content noTitleIndex breadcrumbText permalink
default-layout
License Control - Dynamsoft Barcode Reader JavaScript Edition API
This page shows the License Control APIs of Dynamsoft Barcode Reader JavaScript SDK.
License Control, api reference, javascript, js
true
true
true
License Control
/programming/javascript/api-reference/LicenseControl.html

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's data-license attribute.

static license: string

Code Snippet

<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.6.42/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";