Skip to content

Commit 61b2190

Browse files
committed
fix api name
1 parent 54c9873 commit 61b2190

File tree

1 file changed

+3
-3
lines changed
  • BarcodeReaderSimpleSample

1 file changed

+3
-3
lines changed

BarcodeReaderSimpleSample/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class App extends React.Component {
2626

2727

2828
this.reader = await DynamsoftBarcodeReader.createInstance();
29-
await this.reader.updateDBRRuntimeSettings(EnumDBRPresetTemplate.DEFAULT);
30-
let settings: DBRRuntimeSettings = await this.reader.getDBRRuntimeSettings();
29+
await this.reader.updateRuntimeSettings(EnumDBRPresetTemplate.DEFAULT);
30+
let settings: DBRRuntimeSettings = await this.reader.getRuntimeSettings();
3131
// Set the expected barcode count to 0 when you are not sure how many barcodes you are scanning.
3232
// Set the expected barcode count to 1 can maximize the barcode decoding speed.
3333
settings.expectedBarcodesCount = 0;
3434
settings.barcodeFormatIds = EnumBarcodeFormat.BF_ONED | EnumBarcodeFormat.BF_QR_CODE;
35-
await this.reader.updateDBRRuntimeSettings(settings)
35+
await this.reader.updateRuntimeSettings(settings)
3636

3737
await this.reader.startScanning();
3838
this.reader.addResultListener((results: BarcodeResult[]) => {

0 commit comments

Comments
 (0)