File tree 1 file changed +4
-4
lines changed
programming/javascript/faq
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,21 @@ Update your code to explicitly enable **only the licensed formats**. Here are ex
37
37
>
38
38
``` javascript
39
39
let settings = await router .getSimplifiedSettings (" ReadSingleBarcode" );
40
- // Enable QR Code only
40
+ // Enable QR Code and OneD
41
41
settings .barcodeSettings .barcodeFormatIds =
42
- Dynamsoft .DBR .EnumBarcodeFormat .BF_QR_CODE ;
42
+ Dynamsoft .DBR .EnumBarcodeFormat .BF_QR_CODE | Dynamsoft . DBR . EnumBarcodeFormat . BF_QR_CODE ;
43
43
await router .updateSettings (" ReadSingleBarcode" , settings);
44
44
await router .startCapturing (" ReadSingleBarcode" );
45
45
```
46
46
>
47
47
``` objc
48
48
DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc ] init ];
49
- config.barcodeFormats = DSBarcodeFormatQRCode;
49
+ config.barcodeFormats = DSBarcodeFormatQRCode | DSBarcodeFormatOned; ;
50
50
```
51
51
>
52
52
``` swift
53
53
let config = BarcodeScannerConfig ()
54
- config.barcodeFormats = [.qrCode ]
54
+ config.barcodeFormats = [.oneD , . qrCode ]
55
55
```
56
56
>
57
57
``` java
You can’t perform that action at this time.
0 commit comments