You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programming/features/barcode-formats-and-count.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,23 @@ You can configure the parameter in two different ways, depending on your require
19
19
* Configure barcode format via `SimplifiedCaptureVisionSettings`.
20
20
21
21
<divclass="sample-code-prefix template2"></div>
22
+
>- JavaScript
22
23
>- C++
23
24
>- Android
24
25
>- Objective-C
25
26
>- Swift
26
27
>
27
28
>
29
+
```javascript
30
+
// Obtain current runtime settings of `router` instance. Here we use `ReadSingleBarcode` as an example. You can change it to your own template name or the name of other preset template.
31
+
let settings =awaitrouter.getSimplifiedSettings("ReadSingleBarcode");
32
+
// Specify the barcode formats by enumeration values.
33
+
// Use "|" to enable multiple barcode formats at one time.
// Obtain current runtime settings of `CCaptureVisionRouter` instance.
@@ -102,12 +113,19 @@ do{
102
113
* apply settings by calling method `InitSettingsFromFile`
103
114
104
115
<div class="sample-code-prefix template2"></div>
116
+
>- JavaScript
105
117
>- C++
106
118
>- Android
107
119
>- Objective-C
108
120
>- Swift
109
121
>
110
122
>
123
+
```javascript
124
+
// `router` is an instance of `CaptureVisionRouter`.
125
+
// In the JS edition, the method name we use for initialization is different.
126
+
router.initSettings("PATH-TO-YOUR-SETTING")
127
+
```
128
+
>
111
129
```c++
112
130
char szErrorMsg[256] = {0};
113
131
CCaptureVisionRouter* cvr = new CCaptureVisionRouter;
@@ -155,12 +173,21 @@ You can configure the parameter in two different ways, depending on your require
155
173
* Configure expected barcode count via `SimplifiedCaptureVisionSettings`.
156
174
157
175
<div class="sample-code-prefix template2"></div>
176
+
>- JavaScript
158
177
>- C++
159
178
>- Android
160
179
>- Objective-C
161
180
>- Swift
162
181
>
163
182
>
183
+
```javascript
184
+
// Obtain current runtime settings of `router` instance. Here we use `ReadSingleBarcode` as an example. You can change it to your own template name or the name of other preset template.
185
+
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
Copy file name to clipboardExpand all lines: programming/features/barcode-scan-region.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,22 @@ Dynamsoft Barcode Reader (DBR) will locate the code region and decode the entire
17
17
* Configure region via `SimplifiedCaptureVisionSettings`
18
18
19
19
<divclass="sample-code-prefix template2"></div>
20
+
>- JavaScript
20
21
>- C++
21
22
>
22
23
>
24
+
```javascript
25
+
// Obtain current runtime settings of `router` instance. Here we use `ReadSingleBarcode` as an example. You can change it to your own template name or the name of other preset template.
26
+
let settings =awaitrouter.getSimplifiedSettings("ReadSingleBarcode");
Copy file name to clipboardExpand all lines: programming/features/control-terminate-phase.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,9 +65,19 @@ You can configure the parameter in two different ways, depending on your require
65
65
* Configure timeout via `SimplifiedCaptureVisionSettings`.
66
66
67
67
<divclass="sample-code-prefix template2"></div>
68
+
>- JavaScript
68
69
>- C++
69
70
>
70
71
>
72
+
```javascript
73
+
// Obtain current runtime settings of `router` instance. Here we use `ReadSingleBarcode` as an example. You can change it to your own template name or the name of other preset template.
74
+
let settings =awaitrouter.getSimplifiedSettings("ReadSingleBarcode");
0 commit comments