Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.39 KB

File metadata and controls

45 lines (34 loc) · 1.39 KB
layout title description keywords needAutoGenerateSidebar noTitleIndex pageStartVer permalink
default-layout
BarcodeReader License Methods - Dynamsoft Barcode Reader Android API Reference
This page shows BarcodeReader license methods of Dynamsoft Barcode Reader for Android SDK.
initLicense, initLicenseFromServer, initLicenseFromLicenseContent, outputLicenseToString, license methods, BarcodeReader, api reference, android
true
true
8.6
/programming/android/api-reference/primary-license-v9.0.2.html

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();
      }
   }
});