Skip to content

Commit 2df5cf9

Browse files
Update index.md to add better comments for JS license init
1 parent 1e44eab commit 2df5cf9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

license-activation/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ The following shows how to set the license in the code.
3838
>
3939
>
4040
```js
41-
// Option 1: Initialize using the RTU (Ready-To-Use) BarcodeScanner APIs
41+
// Option 1: Set the license when using the RTU (Ready-To-Use) class `BarcodeScanner`.
42+
// Note: The license initialization is deferred until `launch()` is called.
4243
const barcodeScanner = new Dynamsoft.BarcodeScanner({
4344
license: "YOUR_LICENSE_KEY",
4445
});
45-
// Option 2: Initialize the license using the Foundational APIs
46+
// Option 2: Set the license when using the Foundational API.
47+
// Note: The license initialization is also deferred.
4648
Dynamsoft.License.LicenseManager.initLicense("YOUR_LICENSE_KEY");
4749
```
4850
>

0 commit comments

Comments
 (0)