<!--v3.0.20--Updated on 11/23/2023-->

# DynamsoftLicense Module

The License module is defined in the namespace `Dynamsoft.License`. It consists of the classes `LicenseModule` and `LicenseManager`.

## LicenseModule Class

This class defines common functionality in the License module. At present, it has only one method.

| Name                                                     | Description                                |
| ------------------------------------------------------------- | ------------------------------------------ |
| `static` [getVersion()](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/license/license-module-class.md#getversion) | Returns the version of the License module. |

## LicenseManager Class

The `LicenseManager` class is responsible for the licensing of all functional modules in Dynamsoft Capture Vision architecture.

The APIs for this class are:

| API                                                                          | Description                                                             |
| ---------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `static` [getDeviceUUID](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/license/license-manager.md#getdeviceuuid)                 | Returns the unique identifier of the device.                            |
| `static` [initLicense](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/license/license-manager.md#initlicense)                     | Initializes the license for the application using a license key.        |
| `static` [setDeviceFriendlyName](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/license/license-manager.md#setdevicefriendlyname) | Assigns a distinctive name to the device, correlating it with its UUID. |