initScanbotSdk static method
Initializes the Scanbot SDK with given config
s.
The Scanbot SDK must be initialized before using any other API methods.
Implementation
static Future<SdkLicenseStatus> initScanbotSdk(
ScanbotSdkConfig config) async {
try {
LicenseRegistry.addLicense(licenses);
var sdkLicenseStatus =
await channel.invokeMethod('initScanbotSdk', config.toJson());
var licenseStatusJson = jsonDecode(sdkLicenseStatus);
return SdkLicenseStatus.fromJson(licenseStatusJson);
} catch (e) {
Logger.root.severe(e);
rethrow;
}
}