License Methods
Method | Description |
---|---|
initLicense |
Read product key and activate the SDK. |
initLicense
Read the product key and activate the SDK.
static void initLicense(String license, DBRLicenseVerificationListener listener)
Parameters
license
: The product keys.
listener
: The listener that handles callback when the license verification message is returned by the license server. See also DBRLicenseVerificationListener
.
Code Snippet
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DBRLicenseVerificationListener() {
@Override
public void DBRLicenseVerificationCallback(boolean isSuccess, Exception error) {
if(!isSuccess){
error.printStackTrace();
}
}
});