Resource Base
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)
latest version