Skip to content

Commit dd80f23

Browse files
authored
Merge pull request #437 from yqz5625/patch-2
Update enable-supported-barcode-format.md
2 parents d0bab24 + b42f24e commit dd80f23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

programming/javascript/faq/enable-supported-barcode-format.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ Update your code to explicitly enable **only the licensed formats**. Here are ex
3737
>
3838
```javascript
3939
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
40-
// Enable QR Code only
40+
// Enable QR Code and OneD
4141
settings.barcodeSettings.barcodeFormatIds =
42-
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
42+
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODEDynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
4343
await router.updateSettings("ReadSingleBarcode", settings);
4444
await router.startCapturing("ReadSingleBarcode");
4545
```
4646
>
4747
```objc
4848
DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init];
49-
config.barcodeFormats = DSBarcodeFormatQRCode;
49+
config.barcodeFormats = DSBarcodeFormatQRCode | DSBarcodeFormatOned; ;
5050
```
5151
>
5252
```swift
5353
let config = BarcodeScannerConfig()
54-
config.barcodeFormats = [.qrCode]
54+
config.barcodeFormats = [.oneD, .qrCode]
5555
```
5656
>
5757
```java

0 commit comments

Comments
 (0)