Skip to content

Commit 0b3eca2

Browse files
committed
Update README.md
1 parent ef4921d commit 0b3eca2

File tree

1 file changed

+10
-34
lines changed

1 file changed

+10
-34
lines changed

hello-world/README.md

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,71 +30,47 @@ When working with the BarcodeReader class, the main method to use is [`decode`](
3030

3131
## Hello World in Angular
3232

33-
Read more in the README under "3.read-video-angular".
33+
Read more in the README under "angular".
3434

3535
## Hello World in React
3636

37-
Read more in the README under "4.read-video-react".
37+
Read more in the README under "react".
3838

3939
## Hello World in React using Hooks
4040

41-
Read more in the README under "13.read-video-react-hooks".
41+
Read more in the README under "react-hooks".
4242

43-
## Hello World in Vue 2
43+
## Hello World in Vue
4444

45-
Read more in the README under "5.read-video-vue".
46-
47-
## Hello World in Vue 3
48-
49-
Read more in the README under "6.read-video-vue3".
45+
Read more in the README under "vue".
5046

5147
## Hello World in Next.js
5248

53-
Read more in the README under "7.read-video-nextjs".
49+
Read more in the README under "next".
5450

5551
## Hello World in NuxtJS
5652

57-
Read more in the README under "8.read-video-nuxtjs".
53+
Read more in the README under "nuxt".
5854

5955
## Hello World in Electron
6056

61-
Read more in the README under "9.read-video-electron".
57+
Read more in the README under "electron".
6258

6359
## Hello World in PWA
6460

65-
Read more in the README under "10.read-video-pwa".
61+
Read more in the README under "pwa".
6662

6763
## Hello World with RequireJS
6864

6965
This sample shows how to use the SDK in a web page based on RequireJS.
7066

71-
Let's quickly break down the methods used in order:
72-
73-
* `license`: This property specifies a license key.
74-
* `createInstance()`: This method creates a `BarcodeScanner` object. This object can read barcodes directly from a video input with the help of its interactive UI (hidden by default) and the MediaDevices interface.
75-
* `onFrameRead`: This event is triggered every time the SDK finishes scanning a video frame. The `results` object contains all the barcode results that the SDK have found on this frame. In this example, we print the results to the browser console.
76-
* `onUniqueRead`: This event is triggered when the SDK finds a new barcode, which is unique among multiple frames. `txt` holds the barcode text value while `result` is an object that holds details of the barcode. In this example, an alert will be displayed on unique reads.
77-
* `show()`: This method brings up the built-in UI of the `BarcodeScanner` object and starts scanning
78-
79-
Actually, it is not necessary to define both onFrameRead and onUniqueRead in the code. onUniqueRead is more commonly used because it is triggered only when a new barcode is detected, rather than on every frame.
80-
8167
## Hello World with ES6
8268

8369
This sample shows how to use the SDK in a web page based on ES6 (also known as ECMAScript 2015 or ECMAScript 6).
8470

85-
Let's quickly break down the methods used in order:
86-
87-
* `license`: This property specifies a license key.
88-
* `createInstance()`: This method creates a `BarcodeScanner` object. This object can read barcodes directly from a video input with the help of its interactive UI (hidden by default) and the MediaDevices interface.
89-
* `onFrameRead`: This event is triggered every time the SDK finishes scanning a video frame. The `results` object contains all the barcode results that the SDK have found on this frame. In this example, we print the results to the browser console.
90-
* `onUniqueRead`: This event is triggered when the SDK finds a new barcode, which is unique among multiple frames. `txt` holds the barcode text value while `result` is an object that holds details of the barcode. In this example, an alert will be displayed on unique reads.
91-
* `show()`: This method brings up the built-in UI of the `BarcodeScanner` object and starts scanning
92-
93-
Actually, it is not necessary to define both onFrameRead and onUniqueRead in the code. onUniqueRead is more commonly used because it is triggered only when a new barcode is detected, rather than on every frame.
94-
9571
## Hello World with WebView
9672

97-
Read more in the README under "14.read-video-webview".
73+
Read more in the README under "webview".
9874

9975
## Support
10076

0 commit comments

Comments
 (0)