DBRServerLicenseVerificationListener
DBRServerLicenseVerificationListener
is the interface to handle license verification callback when using initLicenseFromServer
.
Note:
initLicenseFromServer
andDBRServerLicenseVerificationListener
are deprecated in 9.0 version.- Please use
DBRLicenseVerificationListener
andinitLicense
to initialize and verify the license in 9.x versions.
interface com.dynamsoft.dbr.DBRServerLicenseVerificationListener
Method | Description |
---|---|
licenseVerificationCallback |
The callback of license server. |
licenseVerificationCallback
void licenseVerificationCallback(boolean isSuccess, Exception error);
Parameters
isSuccess
: Whether the license verification was successful.
error
: The error message from license server.
Code Snippet
DBRServerLicenseVerificationListener licenseVerificationListener = new DBRServerLicenseVerificationListener() {
@Override
public void licenseVerificationCallback(boolean b, Exception e) {
// Add your code
}
};