Skip to content

Commit 1997e8d

Browse files
Merge pull request #315 from dynamsoft-docs/preview
update to internal commit 6f16ca2a
2 parents e68c57f + bd22c98 commit 1997e8d

File tree

10 files changed

+83
-78
lines changed

10 files changed

+83
-78
lines changed

_includes/sidelist-programming/programming-android.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@
269269
</li>
270270
<li lang="android"><a style="cursor:pointer;color:#3c3c3c">Interfaces</a>
271271
<ul lang="android">
272-
<li lang="android"><a href="{{ site.dce_android }}auxiliary-api/protocol-dcecamerastatelistener.html" class="otherLinkColour">CameraStateListener</a></li>
273-
<li lang="android"><a href="{{ site.dce_android }}auxiliary-api/protocol-dcephotolistener.html" class="otherLinkColour">PhotoListener</a></li>
274-
<li lang="android"><a href="{{ site.dce_android }}auxiliary-api/protocol-dceframelistener.html" class="otherLinkColour">VideoFrameListener</a></li>
272+
<li lang="android"><a href="{{ site.dce_android }}auxiliary-api/interface-dcecamerastatelistener.html" class="otherLinkColour">CameraStateListener</a></li>
273+
<li lang="android"><a href="{{ site.dce_android }}auxiliary-api/interface-dcephotolistener.html" class="otherLinkColour">PhotoListener</a></li>
274+
<li lang="android"><a href="{{ site.dce_android }}auxiliary-api/interface-dceframelistener.html" class="otherLinkColour">VideoFrameListener</a></li>
275275
</ul>
276276
</li>
277277
<li lang="android" ><a style="cursor:pointer;color:#3c3c3c">Enumerations</a>

programming/android/api-reference/barcode-scanner/barcode-scan-result.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ breadcrumbText: BarcodeScanResult
1010

1111
# BarcodeScanResult
1212

13-
`BarcodeScanResult` is a result class that contains all decoded barcodes from one scan and the additional information.
13+
`BarcodeScanResult` is a result class that contains all decoded barcodes and their associated info from a single scan.
1414

1515
## Definition
1616

@@ -26,14 +26,14 @@ class BarcodeScanResult
2626

2727
| Method | Description |
2828
| ------ | ----------- |
29-
| [`getBarcodes`](#getbarcodes) | Returns an array of [`BarcodeResultItem`]({{ site.dbr_android_api }}barcode-result-item.html), which is the basic item of the captured results. |
30-
| [`getResultStatus`](#getresultstatus) | Get the status of the result, which can be finished, canceled or exception. |
29+
| [`getBarcodes`](#getbarcodes) | Returns an array of [`BarcodeResultItem`]({{ site.dbr_android_api }}barcode-result-item.html), which represents a single barocde result. |
30+
| [`getResultStatus`](#getresultstatus) | Returns the status of the `BarcodeScanResult`, which can indicate success or failure. |
3131
| [`getErrorCode`](#geterrorcode) | Returns the error code should something go wrong during the barcode recognition process. |
3232
| [`getErrorString`](#geterrorstring) | Returns the error message associated with the error code should something go wrong during the barcode recognition process. |
3333

3434
### getBarcodes
3535

36-
Returns an array of [`BarcodeResultItem`]({{ site.dbr_android_api }}barcode-result-item.html), which is the basic item of the captured results.
36+
Returns an array of [`BarcodeResultItem`]({{ site.dbr_android_api }}barcode-result-item.html), which represents a single barocde result and is the most basic unit of the captured results.
3737

3838
```java
3939
BarcodeResultItem[] getBarcodes();
@@ -45,7 +45,7 @@ An array of [`BarcodeResultItems`]({{ site.dbr_android_api }}barcode-result-item
4545

4646
### getResultStatus
4747

48-
Get the status of the result, which can be finished, canceled or exception.
48+
Returns the status of the `BarcodeScanResult`, which can be one of *finished*, *canceled* or *exception*.
4949

5050
```java
5151
@EnumResultStatus

programming/android/api-reference/barcode-scanner/barcode-scanner-config.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ breadcrumbText: BarcodeScannerConfig
1010

1111
# BarcodeScannerConfig
1212

13-
`BarcodeScannerConfig` is the class that defines the configurations for barcode scanning. It is set via the input value of `BarcodeScannerActivity.ResultContract`
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`.
1414

1515
## Definition
1616

@@ -26,28 +26,28 @@ final class BarcodeScannerConfig
2626

2727
| Method | Description |
2828
| ------ | ----------- |
29-
| [`setLicense`](#setlicense) | Set the license. |
30-
| [`setTemplateFilePath`](#settemplatefilepath) | Set a path for the SDK to load template file. |
31-
| [`setBarcodeFormats`](#setbarcodeformats) | Set the barcode formats to read. |
32-
| [`setScanRegion`](#setscanregion) | Set a scan region. Only the barcodes located in the scan region can be decoded. |
33-
| [`setTorchButtonVisible`](#settorchbuttonvisible) | Set whether to display the torch button when scanning. Uses can click the torch button to turn on/off the torch. |
34-
| [`setBeepEnabled`](#setbeepenabled) | Set whether to trigger a beep sound when a barcode is detected. |
35-
| [`setScanLaserVisible`](#setscanlaservisible) | Set whether to display a scan laser when scanning. |
36-
| [`setAutoZoomEnabled`](#setautozoomenabled) | Set whether to enable the auto-zoom feature when scanning. |
37-
| [`setCloseButtonVisible`](#setclosebuttonvisible) | Set whether to display a button for uses to close the scanner page. |
38-
| [`getLicense`](#getlicense) | Returns the license string. |
39-
| [`getTemplateFilePath`](#gettemplatefilepath) | Get the file path of the template file. |
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. Uses can click the torch button to turn on/off the torch. |
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. |
4040
| [`isTorchButtonVisible`](#istorchbuttonvisible) | Returns whether the button is visible. |
41-
| [`getBarcodeFormats`](#getbarcodeformats) | Returns the barcode format settings. |
42-
| [`getScanRegion`](#getscanregion) | Get the scan region. |
41+
| [`getBarcodeFormats`](#getbarcodeformats) | Returns the barcode format(s) that the library will accept. |
42+
| [`getScanRegion`](#getscanregion) | Returns the scan region. |
4343
| [`isBeepEnabled`](#isbeepenabled) | Returns whether the beep sound is enabled. |
4444
| [`isScanLaserVisible`](#isscanlaservisible) | Returns whether the scan laser is visible. |
45-
| [`isAutoZoomEnabled`](#isautozoomenabled) | Returns whether the auto-zoom is enabled. |
45+
| [`isAutoZoomEnabled`](#isautozoomenabled) | Returns whether the auto-zoom feature is enabled. |
4646
| [`isCloseButtonVisible`](#isclosebuttonvisible) | Returns whether the close button is visible. |
4747

4848
### setLicense
4949

50-
Set the license.
50+
Sets the license key for the Barcode Reader.
5151

5252
```java
5353
void setLicense(String license);
@@ -59,7 +59,7 @@ void setLicense(String license);
5959

6060
### setTemplateFilePath
6161

62-
Set a path for the SDK to load template file.
62+
Sets the local JSON file path that will configure the parameters template for the Barcode Reader.
6363

6464
```java
6565
void setTemplateFilePath(String templateFilePath);
@@ -71,7 +71,7 @@ void setTemplateFilePath(String templateFilePath);
7171

7272
### setBarcodeFormats
7373

74-
Set the barcode formats to read.
74+
Sets the barcode format(s) to read.
7575

7676
```java
7777
void setBarcodeFormats(long format);
@@ -83,7 +83,7 @@ void setBarcodeFormats(long format);
8383

8484
### setScanRegion
8585

86-
Set a scan region. Only the barcodes located in the scan region can be decoded.
86+
Sets a scan region. Only the barcodes located in the scan region can be decoded.
8787

8888
```java
8989
void setScanRegion(DSRect scanRegion);
@@ -95,7 +95,7 @@ void setScanRegion(DSRect scanRegion);
9595

9696
### setTorchButtonVisible
9797

98-
Set whether to display the torch button when scanning. Uses can click the torch button to turn on/off the torch.
98+
Sets whether to display the torch button when scanning. Uses can click the torch button to turn on/off the torch.
9999

100100
```java
101101
void setTorchButtonVisible(boolean torchButtonVisible);
@@ -107,7 +107,7 @@ void setTorchButtonVisible(boolean torchButtonVisible);
107107

108108
### setBeepEnabled
109109

110-
Set whether to trigger a beep sound when a barcode is detected.
110+
Sets whether to trigger a beep sound when a barcode is detected.
111111

112112
```java
113113
void setBeepEnabled(boolean beepEnabled);
@@ -119,7 +119,7 @@ void setBeepEnabled(boolean beepEnabled);
119119

120120
### setScanLaserVisible
121121

122-
Set whether to display a scan laser when scanning.
122+
Sets whether to display a scan laser when scanning.
123123

124124
```java
125125
void setScanLaserVisible(boolean scanLaserVisible);
@@ -131,7 +131,7 @@ void setScanLaserVisible(boolean scanLaserVisible);
131131

132132
### setAutoZoomEnabled
133133

134-
Set whether to enable the auto-zoom feature when scanning.
134+
Sets whether to enable the auto-zoom feature when scanning.
135135

136136
```java
137137
void setAutoZoomEnabled(boolean autoZoomEnabled);
@@ -143,7 +143,7 @@ void setAutoZoomEnabled(boolean autoZoomEnabled);
143143

144144
### setCloseButtonVisible
145145

146-
Set whether to display a button for uses to close the scanner page.
146+
Sets whether to display a button that can close the scanner page.
147147

148148
```java
149149
void setCloseButtonVisible(boolean closeButtonVisible);
@@ -155,7 +155,7 @@ void setCloseButtonVisible(boolean closeButtonVisible);
155155

156156
### getLicense
157157

158-
Returns the license string.
158+
Returns the license key string.
159159

160160
```java
161161
String getLicense();
@@ -203,7 +203,7 @@ A [`DSRect`]({{ site.dcvb_android_api }}core/basic-structures/rect.html) object
203203

204204
### isTorchButtonVisible
205205

206-
Returns whether the button is visible.
206+
Returns a boolean indicating whether or not the torch button is visible.
207207

208208
```java
209209
boolean isTorchButtonVisible();
@@ -215,7 +215,7 @@ A boolean value that determines whether the torch button is displayed.
215215

216216
### isBeepEnabled
217217

218-
Returns whether the beep sound is enabled.
218+
Returns a boolean indicating whether or not the beep sound is enabled.
219219

220220
```java
221221
boolean isBeepEnabled();
@@ -227,7 +227,7 @@ A boolean value that determines whether the beep sound is enabled.
227227

228228
### isScanLaserVisible
229229

230-
Returns whether the scan laser is visible.
230+
Returns a boolean indicating whether or not the scan laser is visible.
231231

232232
```java
233233
boolean isScanLaserVisible();
@@ -239,7 +239,7 @@ A boolean value that determines whether the scan laser is displayed.
239239

240240
### isAutoZoomEnabled
241241

242-
Returns whether the auto-zoom is enabled.
242+
Returns a boolean indicating whether or not the auto-zoom feature is enabled.
243243

244244
```java
245245
boolean isAutoZoomEnabled();
@@ -251,7 +251,7 @@ A boolean value that determines whether the auto-zoom feature is enabled.
251251

252252
### isCloseButtonVisible
253253

254-
Returns whether the close button is visible.
254+
Returns a boolean indicating whether or not the close button is visible.
255255

256256
```java
257257
boolean isCloseButtonVisible();

programming/android/api-reference/barcode-scanner/enum-result-status.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ breadcrumbText: EnumResultStatus
1010

1111
# EnumResultStatus
1212

13-
`EnumResultStatus` is a enumeration class that defines the result status of the `BarcodeScanResult`.
13+
`EnumResultStatus` is an enumeration class that defines the result status of the `BarcodeScanResult`.
14+
15+
If the status is **finished**, that indicates that the result has been decoded and is available - while **canceled** indicates that the operation has been halted. If the result status is **exception**, then that means that an error has occurred during the barcode detection process.
16+
1417

1518
## Definition
1619

programming/android/user-guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ enableLanguageSelection: true
1212

1313
# Android User Guide for Barcode Scanning
1414

15-
This user guide will walk through the [ScanSingleBarcode](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/BarcodeScannerAPISamples/) sample app. When creating your own project, please use this sample as a reference. This guide uses RTU (Ready to Use) APIs which aim to elevate the UI creation process with less code and offer a more pleasant and intuitive UI for your app.
15+
This user guide will walk through the [ScanSingleBarcode](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/BarcodeScannerAPISamples/) sample app. When creating your own project, please use this sample as a reference. This guide uses [`BarcodeScanner`](api-reference/barcode-scanner/index.md) API which aim to elevate the UI creation process with less code and offer a more pleasant and intuitive UI for your app.
1616

1717
> Note:
1818
>
1919
> This guide aims at scanning a single barcode with the `BarcodeScanner` component.
2020
>
2121
> - If you have requirement for scanning multiple barcodes, you may refer to the [DecodeMultipleBrcodes sample](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/FoundationalAPISamples/DecodeMultipleBarcodes).
22-
> - If you have higher customization requirements for the interface, you may refer to the [Foundational API Samples](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/FoundationalAPISamples/) or [Build your APP with Foundational APIs]({{ site.android }}user-guide.html) article.
22+
> - If you have more complex customization requirements for the interface, you may refer to the [Foundational API Samples](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/FoundationalAPISamples/) or [Build your APP with Foundational APIs]({{ site.android }}user-guide.html) article.
2323
2424
## Requirements
2525

@@ -57,7 +57,7 @@ There are two ways in which you can include the `dynamsoftbarcodereaderbundle` l
5757

5858
### Option 2: Add the Libraries via Local .aar Files
5959

60-
1. Download the SDK package from the <a href="https://www.dynamsoft.com/barcode-reader/downloads/?utm_source=docs#mobile" target="_blank">Dynamsoft Website</a>. After unzipping, you should find a single **aar** file can be found in the **Dynamsoft\Libs** directory:
60+
1. Download the SDK package from the <a href="https://www.dynamsoft.com/barcode-reader/downloads/?utm_source=docs#mobile" target="_blank">Dynamsoft Website</a>. After unzipping, several **aar** files can be found in the **Dynamsoft\Libs** directory:
6161

6262
- 📄 **DynamsoftBarcodeReaderBundle.aar**
6363
- 📄 **DynamsoftCaptureVisionRouter.aar**
@@ -68,7 +68,7 @@ There are two ways in which you can include the `dynamsoftbarcodereaderbundle` l
6868
- 📄 **DynamsoftImageProcessing.aar**
6969
- 📄 **DynamsoftUtility.aar**
7070

71-
2. Copy the above **aar** file to the target directory such as `[App Project Root Path]\app\libs`
71+
2. Copy the above **.aar** files to the target directory such as *[App Project Root Path]\app\libs*
7272

7373
3. Open the file `[App Project Root Path]\app\build.gradle` and add the reference in the dependencies:
7474

@@ -305,7 +305,7 @@ Now that the code has been written and the project complete, it's time to run th
305305

306306
## Conclusion
307307

308-
Now that your RTU project is up and running you should be able to see a clean and simplified UI that contains all the necessary UI elements that are needed to make the barcode scanning process as easy and intuitive for the user as it can be.
308+
Now that your `BarcodeScanner` project is up and running you should be able to see a clean and simplified UI that contains all the necessary UI elements that are needed to make the barcode scanning process as easy and intuitive for the user as it can be.
309309

310310
## Next Steps
311311

programming/objectivec-swift/api-reference/barcode-scanner/barcode-scan-result.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ breadcrumbText: DSBarcodeScanResult
1010

1111
# DSBarcodeScanResult
1212

13-
`DSBarcodeScanResult` is a result class that contains all decoded barcodes from one scan and the additional information.
13+
`DSBarcodeScanResult` is a result class that contains all decoded barcodes and their associated info from a single scan.
1414

1515
## Definition
1616

@@ -34,13 +34,13 @@ class BarcodeScanResult : NSObject
3434
| Property | Type | Description |
3535
| -------- | ---- | ----------- |
3636
| [`barcodes`](#barcodes) | *NSArray<DSBarcodeResultItem\*> \** | An array of [`DSBarcodeResultItem`]({{ site.dbr_ios_api }}barcode-result-item.html), which is the basic item of the captured results. |
37-
| [`resultStatus`](#resultstatus) | *DSResultStatus* | The status of the result, which can be finished, canceled or exception. |
37+
| [`resultStatus`](#resultstatus) | *DSResultStatus* | The status of the `BarcodeScanResult`, which can indicate success or failure. |
3838
| [`errorCode`](#errorcode) | *NSInteger* | The error code should something go wrong during the barcode recognition process. |
3939
| [`errorString`](#errorstring) | *NSString \** | The error message associated with the error code should something go wrong during the barcode recognition process. |
4040

4141
### barcodes
4242

43-
An array of [`DSBarcodeResultItem`]({{ site.dbr_ios_api }}barcode-result-item.html), which is the basic item of the captured results.
43+
An array of [`DSBarcodeResultItem`]({{ site.dbr_ios_api }}barcode-result-item.html), which is the basic item of the captured results and is the most basic unit of the captured results.
4444

4545
<div class="sample-code-prefix"></div>
4646
>- Objective-C
@@ -57,7 +57,7 @@ var barcodes: [BarcodeResultItem] {get}
5757

5858
### resultStatus
5959

60-
The status of the result, which can be finished, canceled or exception.
60+
The status of the result, which can be one of *finished*, *canceled* or *exception*.
6161

6262
<div class="sample-code-prefix"></div>
6363
>- Objective-C

0 commit comments

Comments
 (0)