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