From b12ffb91e3b205807d5e32539af2157611beb4ea Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 22 Jun 2026 15:56:51 +0800 Subject: [PATCH 1/2] Add thread-safety warning for CaptureVisionRouter instances in Android and iOS guides --- programming/android/foundational-guide.md | 5 +++++ programming/objectivec-swift/foundational-guide.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/programming/android/foundational-guide.md b/programming/android/foundational-guide.md index b38f7002..010cd57a 100644 --- a/programming/android/foundational-guide.md +++ b/programming/android/foundational-guide.md @@ -298,6 +298,11 @@ Add the SDK to your new project. Please read [Add the Libraries](#add-the-librar } ``` +> [!IMPORTANT] +> Instances of `CaptureVisionRouter` are not thread-safe. +> Do not access the same `CaptureVisionRouter` instance from multiple threads concurrently. +> Create a separate instance for each thread if concurrent processing is required. + 2. Create a `CapturedResultReceiver` and register with the `CaptureVisionRouter` instance to get recognized barcode results.
diff --git a/programming/objectivec-swift/foundational-guide.md b/programming/objectivec-swift/foundational-guide.md index 36107d25..f7b5c37a 100644 --- a/programming/objectivec-swift/foundational-guide.md +++ b/programming/objectivec-swift/foundational-guide.md @@ -218,6 +218,11 @@ func setUpCamera() { } ``` +> [!IMPORTANT] +> Instances of `CaptureVisionRouter` are not thread-safe. +> Do not access the same `CaptureVisionRouter` instance from multiple threads concurrently. +> Create a separate instance for each thread if concurrent processing is required. + 2. Implement `onDecodedBarcodesReceived` to receive the barcode decoding results and add this result receiver to the current CVR object.
From 2b4fac4bc44f7d5311ff335ccbd7bcbf55154d34 Mon Sep 17 00:00:00 2001 From: Justin-dynamsoft <117710848+Justin-dynamsoft@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:19:41 +0800 Subject: [PATCH 2/2] fix typo --- .../api-reference/barcode-scanner/barcode-scanner-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programming/react-native/api-reference/barcode-scanner/barcode-scanner-config.md b/programming/react-native/api-reference/barcode-scanner/barcode-scanner-config.md index 16608935..a521986d 100644 --- a/programming/react-native/api-reference/barcode-scanner/barcode-scanner-config.md +++ b/programming/react-native/api-reference/barcode-scanner/barcode-scanner-config.md @@ -175,7 +175,7 @@ expectedBarcodesCount?: number; - 0: detects at least one barcode. - N ( N > 0 ): detects N barcodes. -- Dynamsoft Barcode Reader works as a loop trying different parameters to detect as many barcodes as possible till it reaches the nuumber specified by expectedBarcodesCount. If expectedBarcodesCount is 0, the loop stops after a cycle finishes and detects at least one barcode. If ExpectedBarcodesCount is N, the loop stops once N barcodes are detected. +- Dynamsoft Barcode Reader works as a loop trying different parameters to detect as many barcodes as possible till it reaches the number specified by expectedBarcodesCount. If expectedBarcodesCount is 0, the loop stops after a cycle finishes and detects at least one barcode. If ExpectedBarcodesCount is N, the loop stops once N barcodes are detected. ### templateNodeRequire