How to check the version of the JS SDK I am currently using?
There are multiple ways to check the version currently being used -
- The first way is to use the version API. Using this API in the browser console should print out the version of the library being used by the web app.
-
If you are using the library via npm or yarn, then you can check the version of the package via
npm –v dynamsoft-javascript-barcode - If you are including the library via the CDN link, then the version number should be mentioned in that reference link.
- Javascript
- Objective-C
- Swift
- Android
- Python
- C++
- C#
const version = Dynamsoft.DBR.BarcodeReaderModule.getVersion(); console.log(version);NSString *version = [DSCaptureVisionRouterModule getVersion];let version = CaptureVisionRouterModule.getVersion()BarcodeReaderModule reader = BarcodeReaderModule(); String versionInfo = reader.getVersion();reader = BarcodeReaderModule() print(reader.get_version())const char* version = CCaptureVisionRouterModule::GetVersion();using (CaptureVisionRouter cvr = new CaptureVisionRouter()) { SimplifiedCaptureVisionSettings settings; string errorMsg; // Obtain current runtime settings of `CCaptureVisionRouter` instance. cvr.GetSimplifiedSettings(PresetTemplate.PT_READ_BARCODES, out settings); // Specify the barcode formats by enumeration values. // Use "|" to enable multiple barcode formats at one time. settings.barcodeSettings.barcodeFormatIds = (ulong)(EnumBarcodeFormat.BF_QR_CODE | EnumBarcodeFormat.BF_ONED); // Update the settings. cvr.UpdateSettings(PresetTemplate.PT_READ_BARCODES, settings, out errorMsg); }