LicenseManager
The LicenseManager class provides the API for licensing.
Definition
Assembly: dynamsoft-capture-vision-react-native
class LicenseManager
Methods
| Method | Description |
|---|---|
initLicense |
Initializes the license for the application using the provided license key. |
setDeviceFriendlyName |
Assigns a distinctive name to the device, correlating it with its UUID. |
getDeviceUUID |
Returns the unique identifier of the device. |
initLicense
Initializes the license for the application using the provided license key.
static initLicense(license: string): Promise<void>
Code Snippet
const License = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
LicenseManager.initLicense(License).catch(e => {
Alert.alert('License error', e.message);
});
setDeviceFriendlyName
Assigns a distinctive name to the device, correlating it with its UUID.
static setDeviceFriendlyName(name: string)
Parameters
name: User defined device name.
getDeviceUUID
Returns the unique identifier of the device.
static getDeviceUUID(): Promise<string>
Return Value
The device UUID.