Resource Base
Table of contents
Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.

License Initialization

Get a trial license

You can request a 30-day trial license via the Request a Trial License link.

You can contact our support team via the Contacting Us link when:

  • You want request for an Offline trial license.
  • Your license generation failed.

Get a Full License

Contact us to purchase a full license.

Set the License In the Code

The following shows how to set the license in the code.

  • C++
  • JavaScript
  • Android
  • Objective-C
  • Swift
    int errorCode = 1;
    char errorMsg[512];
    errorCode = CLicenseManager::InitLicense("YOUR-LICENSE-KEY", errorMsg, 512);
    if (errorCode != EC_OK)
        cout << "License initialization error: " << errorMsg << endl;
    // add further process
Dynamsoft.License.LicenseManager.initLicense("YOUR-LICENSE-KEY");
LicenseManager.initLicense("YOUR-LICENSE-KEY", this, (isSuccess, error) -> {
   if (!isSuccess) {
          error.printStackTrace();
   }
});
[DSLicenseManager initLicense:@"YOUR-LICENSE-KEY" verificationDelegate:self];
- (void)onLicenseVerified:(BOOL)isSuccess error:(nullable NSError *)error {
    if (!isSuccess && error != nil) {
        NSLog(@"error: %@", error);
    }
}
LicenseManager.initLicense("YOUR-LICENSE-KEY", verificationDelegate: self)
func onLicenseVerified(_ isSuccess: Bool, error: Error?) {
   if !isSuccess {
          if let error = error {
             print("\(error.localizedDescription)")
          }
   }
}

Is this page helpful?

YesYes NoNo

Version 2.4.10

    • version 2.4.10
    • Version 2.x
      • Version 2.2.11
      • Version 2.2.0
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.0.0
    Change +