File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
programming/javascript/faq Expand file tree Collapse file tree 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
3737>
3838``` javascript
3939let settings = await router .getSimplifiedSettings (" ReadSingleBarcode" );
40- // Enable QR Code only
40+ // Enable QR Code and OneD
4141settings .barcodeSettings .barcodeFormatIds =
42- Dynamsoft .DBR .EnumBarcodeFormat .BF_QR_CODE ;
42+ Dynamsoft .DBR .EnumBarcodeFormat .BF_QR_CODE | Dynamsoft . DBR . EnumBarcodeFormat . BF_QR_CODE ;
4343await router .updateSettings (" ReadSingleBarcode" , settings);
4444await router .startCapturing (" ReadSingleBarcode" );
4545```
4646>
4747``` objc
4848DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc ] init ];
49- config.barcodeFormats = DSBarcodeFormatQRCode;
49+ config.barcodeFormats = DSBarcodeFormatQRCode | DSBarcodeFormatOned; ;
5050```
5151>
5252``` swift
5353let config = BarcodeScannerConfig ()
54- config.barcodeFormats = [.qrCode ]
54+ config.barcodeFormats = [.oneD , . qrCode ]
5555```
5656>
5757``` java
You can’t perform that action at this time.
0 commit comments