LicenseManager
The LicenseManager
class provides a set of APIs to manage SDK licensing.
Definition
Namespace: com.dynamsoft.license
Assembly: DynamsoftLicense.aar
class LicenseManager
Methods
Method | Description |
---|---|
initLicense |
Initializes the license for the application using a 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 a license key.
static void initLicense(String license, @NonNull Context context, LicenseVerificationListener listener);
Parameters
[in] license
: The license key to be used for initialization.
[in] context
: The context that you want to initialize the license.
[in] listener
: A listener object of LicenseVerificationListener
to monitor the license activation status.
setDeviceFriendlyName
Assigns a distinctive name to the device, correlating it with its UUID.
static void setDeviceFriendlyName(String name);
Parameters
[in] name
: The name of the device.
getDeviceUUID
Returns the unique identifier of the device.
static String getDeviceUUID(){}
Return Value
The unique identifier of the device.