initLicense static method
Initializes the barcode reader license and connects to the specified server for online verification.
The license
is a key. It can be online/offline, trial/full.
Return true
is vertify success, otherwise return false
.
You can use initLicense like this:
try {
await DynamsoftBarcodeReader.initLicense(license: '*********');
} catch (e) {
print('license error = $e');
}
Implementation
static Future<bool> initLicense(String license) {
return _barcodeReaderCaller.initLicense(license);
}