Skip to content

Commit 4e2731f

Browse files
update to internal commit 390606a2
1 parent b9413f4 commit 4e2731f

36 files changed

+3008
-345
lines changed

_data/full_tree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
tree_file_list:
22
- sidelist-full-tree.html
33
- sidelist-programming/programming-android.html
4+
- sidelist-programming/programming-android-v10.4.3000.html
45
- sidelist-programming/programming-android-v10.4.2002.html
56
- sidelist-programming/programming-android-v10.2.1100.html
67
- sidelist-programming/programming-android-v10.0.21.html
@@ -21,6 +22,7 @@ tree_file_list:
2122
- sidelist-programming/programming-android-v7.6.0.html
2223
- sidelist-programming/programming-android-v7.5.0.html
2324
- sidelist-programming/programming-oc.html
25+
- sidelist-programming/programming-oc-v10.4.3000.html
2426
- sidelist-programming/programming-oc-v10.4.2002.html
2527
- sidelist-programming/programming-oc-v10.2.1101.html
2628
- sidelist-programming/programming-oc-v10.0.21.html

_data/product_version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ version_info_list_mobile:
2626
- value: latest version
2727
- value: 10.x
2828
child:
29+
- 10.4.3000_android
30+
- 10.4.3000_ios
2931
- 10.4.2003_android
3032
- 10.4.2003_ios
3133
- 10.4.2002_android

_includes/sidelist-programming/programming-android-v10.4.3000.html

Lines changed: 442 additions & 0 deletions
Large diffs are not rendered by default.

_includes/sidelist-programming/programming-android.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
<li lang="android" ><a href="{{ site.android }}user-guide/index.html" class="otherLinkColour">User Guide</a>
44
<ul lang="android" >
55
<li lang="android" ><a href="{{ site.android }}user-guide.html" class="otherLinkColour">Build your first APP</a> </li>
6-
<li lang="android" ><a href="{{ site.android }}user-guide/configure-barcode-scanner.html" class="otherLinkColour">Configure Barcode Scanner</a></li>
6+
<li lang="android" ><a href="{{ site.android }}user-guide/configure-barcode-scanner.html" class="otherLinkColour">Configure Barcode Scanner</a>
7+
<ul lang="android" >
8+
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-barcode-formats.html" class="otherLinkColour">Specify Barcode Format</a></li>
9+
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-multi-barcodes.html" class="otherLinkColour">Enable Multiple Barcodes Scanning</a></li>
10+
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-improve-performance.html" class="otherLinkColour">Improve the Performance</a></li>
11+
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-customize-ui.html" class="otherLinkColour">Customize the Scanner UI</a></li>
12+
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-additional-settings.html" class="otherLinkColour">Add Addtional Settings</a></li>
13+
</ul>
14+
</li>
715
<li lang="android" ><a class="otherLinkColour">Develop with Foundational APIs</a>
816
<ul lang="android">
917
<li lang="android" ><a href="{{ site.android }}foundational-guide.html" class="otherLinkColour">Build your APP with foundational APIs</a></li>
@@ -67,6 +75,7 @@
6775
<li lang="android"><a class="otherLinkColour">Enumerations</a>
6876
<ul lang="android">
6977
<li lang="android"><a href="{{ site.dbr_android_api }}barcode-scanner/enum-result-status.html?lang=android" class="otherLinkColour">EnumResultStatus</a></li>
78+
<li lang="android"><a href="{{ site.dbr_android_api }}barcode-scanner/enum-scanning-mode.html?lang=android" class="otherLinkColour">EnumScanningMode</a></li>
7079
</ul>
7180
</li>
7281
</ul>

_includes/sidelist-programming/programming-oc-v10.4.3000.html

Lines changed: 443 additions & 0 deletions
Large diffs are not rendered by default.

_includes/sidelist-programming/programming-oc.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/index.html" class="otherLinkColour">User Guide</a>
55
<ul lang="objectivec-swift" >
66
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide.html" class="otherLinkColour">Build your first APP</a> </li>
7-
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/configure-barcode-scanner.html?lang=objc,swift" class="otherLinkColour">Configure Barcode Scanner</a></li>
7+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/configure-barcode-scanner.html" class="otherLinkColour">Configure Barcode Scanner</a>
8+
<ul lang="objectivec-swift" >
9+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-barcode-formats.html" class="otherLinkColour">Specify Barcode Format</a></li>
10+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-multi-barcodes.html" class="otherLinkColour">Enable Multiple Barcodes Scanning</a></li>
11+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-improve-performance.html" class="otherLinkColour">Improve the Performance</a></li>
12+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-customize-ui.html" class="otherLinkColour">Customize the Scanner UI</a></li>
13+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-additional-settings.html" class="otherLinkColour">Add Addtional Settings</a></li>
14+
</ul>
15+
</li>
16+
817
<li lang="objectivec-swift" ><a class="otherLinkColour">Develop with Foundational APIs</a>
918
<ul lang="objectivec-swift">
1019
<li lang="objectivec-swift" ><a href="{{ site.oc }}foundational-guide.html" class="otherLinkColour">Build your APP with foundational APIs</a></li>
@@ -71,6 +80,7 @@
7180
<li lang="objectivec-swift"><a class="otherLinkColour">Enumerations</a>
7281
<ul lang="objectivec-swift">
7382
<li lang="objectivec-swift"><a href="{{ site.dbr_ios_api }}barcode-scanner/enum-result-status.html?lang=objc,swift" class="otherLinkColour">EnumResultStatus</a></li>
83+
<li lang="objectivec-swift"><a href="{{ site.dbr_ios_api }}barcode-scanner/enum-scanning-mode.html?lang=objc,swift" class="otherLinkColour">EnumScanningMode</a></li>
7484
</ul>
7585
</li>
7686
</ul>
Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
---
2+
layout: default-layout
3+
title: BarcodeScannerConfig Class - Dynamsoft Barcode Reader Android Edition
4+
description: BarcodeScannerConfig of Dynamsoft Barcode Reader Android is the class that defines the configurations for BarcodeScanner component.
5+
keywords: scanner, activity, startCapturing, license
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
breadcrumbText: BarcodeScannerConfig
9+
---
10+
11+
# BarcodeScannerConfig
12+
13+
`BarcodeScannerConfig` is the class that defines the configurations for barcode scanning. Once the `BarcodeScannerConfig` object is made, it is set via the `BarcodeScannerActivity.ResultContract`.
14+
15+
## Definition
16+
17+
*Assembly:* DynamsoftBarcodeReaderBundle.aar
18+
19+
*Namespace:* com.dynamsoft.dbrbundle.ui
20+
21+
```java
22+
final class BarcodeScannerConfig
23+
```
24+
25+
## Methods
26+
27+
| Method | Description |
28+
| ------ | ----------- |
29+
| [`setLicense`](#setlicense) | Sets the license key for the Barcode Reader. |
30+
| [`setTemplateFilePath`](#settemplatefilepath) | Sets the parameters template for the Barcode Reader via a local JSON file path. |
31+
| [`setBarcodeFormats`](#setbarcodeformats) | Sets the barcode format(s) to read. |
32+
| [`setScanRegion`](#setscanregion) | Sets a scan region where only the barcodes located in the scan region can be decoded. |
33+
| [`setTorchButtonVisible`](#settorchbuttonvisible) | Sets whether to display the torch button when scanning or not. |
34+
| [`setBeepEnabled`](#setbeepenabled) | Sets whether to trigger a beep sound when a barcode is detected. |
35+
| [`setScanLaserVisible`](#setscanlaservisible) | Sets whether to display a scan laser when scanning. |
36+
| [`setAutoZoomEnabled`](#setautozoomenabled) | Sets whether to enable the auto-zoom feature when scanning. |
37+
| [`setCloseButtonVisible`](#setclosebuttonvisible) | Sets whether to display a button that can close the scanner page. |
38+
| [`getLicense`](#getlicense) | Returns the license key string. |
39+
| [`getTemplateFilePath`](#gettemplatefilepath) | Returns the file path of the template file if one is being used. |
40+
| [`isTorchButtonVisible`](#istorchbuttonvisible) | Returns whether the button is visible. |
41+
| [`getBarcodeFormats`](#getbarcodeformats) | Returns the barcode format(s) that the library will accept. |
42+
| [`getScanRegion`](#getscanregion) | Returns the scan region. |
43+
| [`isBeepEnabled`](#isbeepenabled) | Returns whether the beep sound is enabled. |
44+
| [`isScanLaserVisible`](#isscanlaservisible) | Returns whether the scan laser is visible. |
45+
| [`isAutoZoomEnabled`](#isautozoomenabled) | Returns whether the auto-zoom feature is enabled. |
46+
| [`isCloseButtonVisible`](#isclosebuttonvisible) | Returns whether the close button is visible. |
47+
48+
### setLicense
49+
50+
Sets the license key for the Barcode Reader.
51+
52+
```java
53+
void setLicense(String license);
54+
```
55+
56+
**Parameter(s)**
57+
58+
`license`: The license key to be used for initialization.
59+
60+
### setTemplateFilePath
61+
62+
Sets the local JSON file path that will configure the parameters template for the Barcode Reader.
63+
64+
```java
65+
void setTemplateFilePath(String templateFilePath);
66+
```
67+
68+
**Parameter(s)**
69+
70+
`templateFilePath`: The path of the JSON template file.
71+
72+
### setBarcodeFormats
73+
74+
Sets the barcode format(s) to read.
75+
76+
```java
77+
void setBarcodeFormats(long format);
78+
```
79+
80+
**Parameter(s)**
81+
82+
`format`: A combined value of [`EnumBarcodeFormat`]({{ site.dcvb_enumerations }}barcode-reader/barcode-format.html?lang=android) to specify which barcode format(s) the library should target.
83+
84+
### setScanRegion
85+
86+
Sets a scan region. Only the barcodes located in the scan region can be decoded.
87+
88+
```java
89+
void setScanRegion(DSRect scanRegion);
90+
```
91+
92+
**Parameter(s)**
93+
94+
`scanRegion`: A [`DSRect`]({{ site.dcvb_android_api }}core/basic-structures/rect.html) object that specifies the scan region.
95+
96+
### setTorchButtonVisible
97+
98+
Sets whether to display the torch button when scanning. User can click the torch button to turn on/off the torch.
99+
100+
```java
101+
void setTorchButtonVisible(boolean torchButtonVisible);
102+
```
103+
104+
**Parameter(s)**
105+
106+
`torchButtonVisible`: A boolean value that determines whether to display the torch button.
107+
108+
### setBeepEnabled
109+
110+
Sets whether to trigger a beep sound when a barcode is detected.
111+
112+
```java
113+
void setBeepEnabled(boolean beepEnabled);
114+
```
115+
116+
**Parameter(s)**
117+
118+
`beepEnabled`: A boolean value that determines whether to enable the beep sound.
119+
120+
### setScanLaserVisible
121+
122+
Sets whether to display a scan laser when scanning.
123+
124+
```java
125+
void setScanLaserVisible(boolean scanLaserVisible);
126+
```
127+
128+
**Parameter(s)**
129+
130+
`scanLaserVisible`: A boolean value that determines whether to display the scan laser.
131+
132+
### setAutoZoomEnabled
133+
134+
Sets whether to enable the auto-zoom feature when scanning.
135+
136+
```java
137+
void setAutoZoomEnabled(boolean autoZoomEnabled);
138+
```
139+
140+
**Parameter(s)**
141+
142+
`autoZoomEnabled`: A boolean value that determines whether to enable the auto-zoom feature.
143+
144+
### setCloseButtonVisible
145+
146+
Sets whether to display a button that can close the scanner page.
147+
148+
```java
149+
void setCloseButtonVisible(boolean closeButtonVisible);
150+
```
151+
152+
**Parameter(s)**
153+
154+
`closeButtonVisible`: A boolean value that determines whether to display the close button.
155+
156+
### getLicense
157+
158+
Returns the license key string.
159+
160+
```java
161+
String getLicense();
162+
```
163+
164+
**Return Value**
165+
166+
The license key to be used for initialization.
167+
168+
### getTemplateFilePath
169+
170+
Get the file path of the template file.
171+
172+
```java
173+
String getTemplateFilePath();
174+
```
175+
176+
**Return Value**
177+
178+
The path of the JSON template file.
179+
180+
### getBarcodeFormats
181+
182+
Returns the barcode format settings.
183+
184+
```java
185+
long getBarcodeFormats();
186+
```
187+
188+
**Return Value**
189+
190+
A combined value of [`EnumBarcodeFormat`]({{ site.dcvb_enumerations }}barcode-reader/barcode-format.html?lang=android) to specify which barcode format(s) the library should target.
191+
192+
### getScanRegion
193+
194+
Returns the scan region.
195+
196+
```java
197+
DSRect getScanRegion();
198+
```
199+
200+
**Return Value**
201+
202+
A [`DSRect`]({{ site.dcvb_android_api }}core/basic-structures/rect.html) object that specifies the scan region.
203+
204+
### isTorchButtonVisible
205+
206+
Returns a boolean indicating whether or not the torch button is visible.
207+
208+
```java
209+
boolean isTorchButtonVisible();
210+
```
211+
212+
**Return Value**
213+
214+
A boolean value that determines whether the torch button is displayed.
215+
216+
### isBeepEnabled
217+
218+
Returns a boolean indicating whether or not the beep sound is enabled.
219+
220+
```java
221+
boolean isBeepEnabled();
222+
```
223+
224+
**Return Value**
225+
226+
A boolean value that determines whether the beep sound is enabled.
227+
228+
### isScanLaserVisible
229+
230+
Returns a boolean indicating whether or not the scan laser is visible.
231+
232+
```java
233+
boolean isScanLaserVisible();
234+
```
235+
236+
**Return Value**
237+
238+
A boolean value that determines whether the scan laser is displayed.
239+
240+
### isAutoZoomEnabled
241+
242+
Returns a boolean indicating whether or not the auto-zoom feature is enabled.
243+
244+
```java
245+
boolean isAutoZoomEnabled();
246+
```
247+
248+
**Return Value**
249+
250+
A boolean value that determines whether the auto-zoom feature is enabled.
251+
252+
### isCloseButtonVisible
253+
254+
Returns a boolean indicating whether or not the close button is visible.
255+
256+
```java
257+
boolean isCloseButtonVisible();
258+
```
259+
260+
**Return Value**
261+
262+
A boolean value that determines whether the close button is displayed.

0 commit comments

Comments
 (0)