CameraDLSLicenseVerificationListener
The interface to handle callback when license verification messages are returned.
interface com.dynamsoft.dce.CameraDLSLicenseVerificationListener
Method | Description |
---|---|
DLSLicenseVerificationCallback |
The call back of the license server. |
DLSLicenseVerificationCallback
The call back of the license server. Add the code in the callback function to react when the license server connection is successful or failed.
void DLSLicenseVerificationCallback(boolean isSuccess, Exception error);
Parameters
isSuccess
: Whether the license verification was successful.
error
: The error message from the license server.
Code Snippet
cameraEnhancer.initLicenseFromDLS(dceParameters, new CameraDLSLicenseVerificationListener() {
@Override
public void DLSLicenseVerificationCallback(boolean isSuccess, Exception e) {
if (!isSuccess) {
e.printStackTrace();
}
}
});