Resource Base
Table of contents

License initialization

Get a trial key

  • A time-limited public trial key is available for every new device for the first use of Dynamsoft Camera Enhancer.
  • If your free key is expired, please visit Private Trial License Page to get an extension.

Get a full key license

Set up the license from Dynamsoft License Server

Once you have a license you can use the following code to set up your license from Dynamsoft License Server:

For Android users:

Android sample

Java:

    DMDLSConnectionParameters info = new DMDLSConnectionParameters();
    info.organizationID = "Your organizationID";
    mCamera.initLicenseFromDLS(info, new CameraDLSLicenseVerificationListener() {
        @Override
        public void DLSLicenseVerificationCallback(boolean b, Exception e) {
            if(!b && e != null){
                e.printStackTrace();
            }
        }
    });

Kotlin:

    val info = com.dynamsoft.dce.DMDLSConnectionParameters()
    info.organizationID = "Put your organizationID here."
    mCameraEnhancer!!.initLicenseFromDLS(info) { isSuccess, error ->
        if (!isSuccess) {
            error.printStackTrace()
        }
    }

For iOS users:

Objective-C sample

    iDCEDLSConnectionParameters* dcePara = [[iDCEDLSConnectionParameters alloc] init];
    dcePara.organizationID = @"Your organizationID";
    dce = [[DynamsoftCameraEnhancer alloc] initLicenseFromDLS:dcePara view:dceview verificationDelegate:self];

Swift sample

    let DLS = iDCEDLSConnectionParameters()
    DLS.organizationID = "Your organizationID"
    dce = DynamsoftCameraEnhancer.init(licenseFromDLS: DLS, view: dceView, verificationDelegate: self)

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

version 1.0.3

  • Latest version
  • Version 4.x
    • Version 4.2.0
    • Version 4.0.3
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.3.10
    • Version 3.3.9
    • Version 3.3.8
    • Version 3.3.7
    • Version 3.3.6
    • Version 3.3.5
    • Version 3.3.4
    • Version 3.3.3
    • Version 3.3.2
    • Version 3.3.1
    • Version 3.3.0
    • Version 3.2.0
    • Version 3.1.0
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.5
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.0
    • Version 2.0.0
  • Version 1.x
    • Version 1.0.3
    • Version 1.0.1
    • Version 1.0.0
Change +