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
|`status` (optional) |[`ResultStatus`](#resultstatus)| The status of the barcode scanning, which can be successful, cancelled, or failed (indicating that something has gone wrong during the scanning process). |
331
+
|`status` (optional) |[`ResultStatus`](#resultstatus)| The status of the barcode scanning, which can be success, cancelled, or failed (indicating that something has gone wrong during the scanning process). |
332
332
|`originalImageResult` (optional) |[`DSImageData`]({{ site.dcvb_js_api }}core/basic-structures/ds-image-data.html) | A `DSImageData` object that represents the original image of the successfully decoded barcode. |
333
333
|`barcodeResults` (optional) |[`Array<BarcodeResultItem>`]({{ site.js_api }}interfaces/barcode-result-item.html) | An array of BarcodeResultItem Represents the decoded barcode(s). |
ResultStatus is used to represent the status of the barcode scanning result. This status can be **successfully**, **cancelled** if the user closes the scanner during scanning, or **failed** if something went wrong during the scanning process. The *code* of the result status is a [`EnumResultStatus`](#enumresultstatus).
359
+
ResultStatus is used to represent the status of the barcode scanning result. This status can be **success**, **cancelled** if the user closes the scanner during scanning, or **failed** if something went wrong during the scanning process. The *code* of the result status is a [`EnumResultStatus`](#enumresultstatus).
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/barcode-scanner.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,16 @@ description: Dynamsoft Barcode Scanner User Guide
10
10
11
11
# Barcode Scanner JavaScript Edition - User Guide
12
12
13
+
-[Barcode Scanner JavaScript Edition - User Guide](#barcode-scanner-javascript-edition---user-guide)
14
+
-[License](#license)
15
+
-[Trial License](#trial-license)
16
+
-[Full License](#full-license)
17
+
-[Quick Start: Hello World Example](#quick-start-hello-world-example)
18
+
-[Step 1: Setting up the HTML and Including the Barcode Scanner](#step-1-setting-up-the-html-and-including-the-barcode-scanner)
19
+
-[Step 2: Initializing the Barcode Scanner](#step-2-initializing-the-barcode-scanner)
20
+
-[Step 3: Launching the Barcode Scanner](#step-3-launching-the-barcode-scanner)
21
+
-[Next Steps](#next-steps)
22
+
13
23
This user guide provides a step-by-step walkthrough of a "Hello World" web application using the `BarcodeScanner` JavaScript Edition.
14
24
15
25
The `BarcodeScanner` class offers the following features:
@@ -55,6 +65,8 @@ new Dynamsoft.BarcodeScanner().launch().then(result=>alert(result.barcodeResults
55
65
56
66
When getting started with Barcode Scanner, we recommend [getting your own 30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=guide&package=js)
57
67
68
+
<!-- {% include trialLicense.html %} -->
69
+
58
70
> [!IMPORTANT]
59
71
> The trial license can be renewed via the [customer portal](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=guide&package=js) twice, each time for another 15 days, giving you a total of 60 days to develop your own application using the solution. Please contact the [Dynamsoft Support Team](https://www.dynamsoft.com/company/contact/) if you need more time for a full evaluation.
60
72
@@ -103,7 +115,7 @@ If you are fully satisfied with the solution and would like to move forward with
103
115
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
104
116
</a>
105
117
106
-
<atarget="_blank"href="https://demo.dynamsoft.com/Samples/DBR/JS/hello-world/hello-world.html?ver=10.5.30&utm_source=guide"title="Run in Dynamsoft"style="text-decoration:none;">
118
+
<atarget="_blank"href="https://demo.dynamsoft.com/Samples/DBR/JS/barcode-scanner-api-samples/scan-single-barcode/hello-world.html?ver=10.5.30&utm_source=guide"title="Run in Dynamsoft"style="text-decoration:none;">
107
119
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
108
120
</a>
109
121
</p>
@@ -237,7 +249,7 @@ Now that the Barcode Scanner has been initialized and configured, it is ready to
237
249
238
250
## Next Steps
239
251
240
-
Now that you’ve implemented the basic functionality, here are some recommended next steps to further explore the capabilities of the Barcode Scanner
252
+
Now that you've implemented the basic functionality, here are some recommended next steps to further explore the capabilities of the Barcode Scanner
241
253
242
254
1. Learn how to [Customize the Barcode Scanner](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner-customization.html)
243
255
2. Check out the [Official Samples and Demo](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/samples-demos/index.html?ver=10.5.30)
0 commit comments