CameraLTSLicenseVerificationListener
The interface to handle callback when license verification messages are returned.
interface com.dynamsoft.dce.CameraLTSLicenseVerificationListener
Method | Description |
---|---|
LTSLicenseVerificationCallback |
The call back of the license server. |
LTSLicenseVerificationCallback
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 LTSLicenseVerificationCallback(boolean isSuccess, Exception error);
Parameters
isSuccess
: Whether the license verification was successful.
error
: The error message from the license server.
Code Snippet
cameraEnhancer.initLicenseFromLTS(dceParameters, new CameraLTSLicenseVerificationListener() {
@Override
public void LTSLicenseVerificationCallback(boolean isSuccess, Exception e) {
if (!isSuccess) {
e.printStackTrace();
}
}
});