Skip to content

Commit 2965d78

Browse files
authored
Merge pull request #2 from yqz5625/main
Created a FAQ structure
2 parents 94c4c71 + 9d75f7e commit 2965d78

File tree

218 files changed

+545
-3006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+545
-3006
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
secret.txt
2+
.DS_Store
3+
logs/
4+
*.log
5+
*.tmp
6+
temp/*
7+
!temp/keep.txt
File renamed without changes.
File renamed without changes.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
layout: default-layout
3+
title: How to check the version of the JS SDK I am currently using?
4+
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, check version, current version
5+
description: How to check the version of the JS SDK I am currently using?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to check the version of the JS SDK I am currently using?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
There are multiple ways to check the version currently being used -
14+
15+
- The first way is to use the [version API](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/InitializationControl.html?ver=latest#version). Using this API in the browser console should print out the version of the library being used by the web app.
16+
- If you are using the library via npm or yarn, then you can check the version of the package via
17+
18+
```bash
19+
npm –v dynamsoft-javascript-barcode
20+
```
21+
22+
- If you are including the library via the CDN link, then the version number should be mentioned in that reference link.
23+
24+
<div class="sample-code-prefix template2"></div>
25+
>- Javascript
26+
>- Objective-C
27+
>- Swift
28+
>- Android
29+
>- Python
30+
>- C++
31+
>- C#
32+
>
33+
>
34+
```javascript
35+
const version = Dynamsoft.DBR.BarcodeReaderModule.getVersion();
36+
console.log(version);
37+
```
38+
>
39+
```objc
40+
NSString *version = [DSCaptureVisionRouterModule getVersion];
41+
```
42+
>
43+
```swift
44+
let version = CaptureVisionRouterModule.getVersion()
45+
```
46+
>
47+
```java
48+
BarcodeReaderModule reader = BarcodeReaderModule();
49+
String versionInfo = reader.getVersion();
50+
```
51+
>
52+
```python
53+
reader = BarcodeReaderModule()
54+
print(reader.get_version())
55+
```
56+
>
57+
```c++
58+
const char* version = CCaptureVisionRouterModule::GetVersion();
59+
```
60+
>
61+
```csharp
62+
using (CaptureVisionRouter cvr = new CaptureVisionRouter())
63+
{
64+
SimplifiedCaptureVisionSettings settings;
65+
string errorMsg;
66+
// Obtain current runtime settings of `CCaptureVisionRouter` instance.
67+
cvr.GetSimplifiedSettings(PresetTemplate.PT_READ_BARCODES, out settings);
68+
// Specify the barcode formats by enumeration values.
69+
// Use "|" to enable multiple barcode formats at one time.
70+
settings.barcodeSettings.barcodeFormatIds = (ulong)(EnumBarcodeFormat.BF_QR_CODE | EnumBarcodeFormat.BF_ONED);
71+
// Update the settings.
72+
cvr.UpdateSettings(PresetTemplate.PT_READ_BARCODES, settings, out errorMsg);
73+
}
74+
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)