# initScanbotSdk static method

Future<SdkLicenseStatus> initScanbotSdk(

1. ScanbotSdkConfig config

)

Initializes the Scanbot SDK with the given `config`.

This must be called before any other SDK API methods. Returns the SdkLicenseStatus after initialization.

## 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;
      }
    }