Resource Base
Table of contents

License initialization

Get a trial key

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

Get a full key license

Set up the license from Dynamsoft License Server

Once you have a license you can use 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:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 1.0.1
    • Version 1.0
    Change +
    © 2003–2021 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support