Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
Method | Description |
---|---|
initLicense |
Read product key and activate the SDK. |
initLicenseFromServer |
Initialize license and connect to the specified server for online verification. |
initLicenseFromLicenseContent |
Initialize license from the license content on client machine for offline verification. |
outputLicenseToString |
Output the license content to a string from the license server. |
Read product key and activate the SDK.
void com.dynamsoft.barcode.BarcodeReader.initLicense(String license) throws BarcodeReaderException
license
The product keys.
BarcodeReader reader = new BarcodeReader();
reader.initLicense("t0260NwAAAHV***************");
reader.destroy();
Initialize the license and connect to the specified server for online verification.
void com.dynamsoft.barcode.BarcodeReader.initLicenseFromServer(String licenseServer, String licenseKey) throws BarcodeReaderException
licenseServer
The URL of the license server.
licenseKey
The license key.
BarcodeReader reader = new BarcodeReader("t0260NwAAAHV***************");
reader.initLicenseFromServer("", "C087****");
reader.destroy();
Initialize barcode reader license from the license content on the client machine for offline verification.
void com.dynamsoft.barcode.BarcodeReader.initLicenseFromLicenseContent(String licenseKey, String licenseContent) throws BarcodeReaderException
licenseKey
The license key.
licenseContent
An encrypted string representing the license content (quota, expiration date, barcode type, etc.) obtained from the method OutputLicenseToString
.
BarcodeReader reader = new BarcodeReader("t0260NwAAAHV***************");
reader.initLicenseFromLicenseContent("t0260NwAAAHV***************", "C087****");
reader.destroy();
Output the license content as an encrypted string from the license server to be used for offline license verification.
String com.dynamsoft.barcode.BarcodeReader.outputLicenseToString() throws BarcodeReaderException
The output string which stores the contents of license.
InitLicenseFromServer
has to be successfully called before calling this method.
BarcodeReader reader = new BarcodeReader("t0260NwAAAHV***************");
reader.initLicenseFromLicenseContent("t0260NwAAAHV***************", "C087****");
String licenseInfo = reader.outputLicenseToString();
reader.destroy();
version 7.6.0