Skip to content

Commit 7c7b530

Browse files
update to internal commit 80ac1b91
1 parent 15715d0 commit 7c7b530

File tree

11 files changed

+413
-11
lines changed

11 files changed

+413
-11
lines changed

programming/android/api-reference/barcode-scanner/barcode-scanner-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,15 @@ The scanning mode.
242242

243243
### getTemplateFile
244244

245-
Get the file path of the template file.
245+
Returns the template with a file path or a JSON string.
246246

247247
```java
248248
String getTemplateFile();
249249
```
250250

251251
**Return Value**
252252

253-
The path of the JSON template file.
253+
A file path or a JSON string.
254254

255255
### getBarcodeFormats
256256

programming/android/user-guide/scanner-barcode-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default-layout
3-
title: Customize the UI of BarcodeScanner - Dynamsoft Barcode Reader for Android
3+
title: Specify barcode formats for BarcodeScanner - Dynamsoft Barcode Reader for Android
44
description: Customize the UI of BarcodeScanner on Android platform.
55
keywords: BarcodeScanner, scanner, Android, scan region, torch button, close button, scan laser
66
needAutoGenerateSidebar: true

programming/android/user-guide/scanner-customize-ui.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ config.setScanRegion(new DSRect(0.15f, 0.25f, 0.85f, 0.65f, true));
3434
config.setTorchButtonVisible(true);
3535
config.setCloseButtonVisible(true);
3636
config.setScanLaserVisible(true);
37+
config.setCameraToggleButtonVisible(true);
3738
```
3839
2.
3940
```kotlin
@@ -43,6 +44,7 @@ val config = BarcodeScannerConfig().apply {
4344
torchButtonVisible = true
4445
closeButtonVisible = true
4546
scanLaserVisible = true
47+
cameraToggleButtonVisible = true
4648
}
4749
```
4850

@@ -52,3 +54,4 @@ val config = BarcodeScannerConfig().apply {
5254
- [`setTorchButtonVisible`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#settorchbuttonvisible)
5355
- [`setScanLaserVisible`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setscanlaservisible)
5456
- [`setCloseButtonVisible`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setclosebuttonvisible)
57+
- [`setCameraToggleButtonVisible`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setcameratogglebuttonvisible)

programming/objectivec-swift/api-reference/barcode-scanner/barcode-scanner-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class BarcodeScannerConfig : NSObject
3434
| Property | Type | Description |
3535
| -------- | ---- | ----------- |
3636
| [`license`](#license) | *NSString \** | Sets or returns the license key for the Barcode Reader. |
37-
| [`templateFile`](#templatefile) | *NSString \** | Sets or returns the local JSON file path that will configure the parameters template for the Barcode Reader. |
37+
| [`templateFile`](#templatefile) | *NSString \** | Sets or returns the template with a file path or a JSON string. |
3838
| [`barcodeFormats`](#barcodeformats) | *DSBarcodeFormat* | Sets or returns the barcode format(s) to read. |
3939
| [`scanRegion`](#scanregion) | *DSRect \** | Sets or returns the scan region where only the barcodes located in the scan region can be decoded. |
4040
| [`isTorchButtonVisible`](#istorchbuttonvisible) | *BOOL* | Sets or returns whether or not the torch button is visible. |
@@ -72,7 +72,7 @@ var license: String { get set }
7272

7373
### templateFile
7474

75-
Sets or returns the local JSON file path that will configure the parameters template for the Barcode Reader.
75+
Sets or returns the template with a file path or a JSON string.
7676

7777
<div class="sample-code-prefix"></div>
7878
>- Objective-C

programming/objectivec-swift/user-guide-v10.4.3000.md

Lines changed: 396 additions & 0 deletions
Large diffs are not rendered by default.

programming/objectivec-swift/user-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ There are three ways in which you can include the `DynamsoftBarcodeReaderBundle`
3535

3636
2. In the top-right section of the window, search "https://github.com/Dynamsoft/barcode-reader-spm"
3737

38-
3. Select `barcode-reader-spm`, choose `Exact version`, enter **10.4.3000**, then click **Add Package**.
38+
3. Select `barcode-reader-spm`, choose `Exact version`, enter **10.4.3001**, then click **Add Package**.
3939

4040
4. Check all the **xcframeworks** and add.
4141

@@ -47,7 +47,7 @@ There are three ways in which you can include the `DynamsoftBarcodeReaderBundle`
4747
target 'ScanSingleBarcode' do
4848
use_frameworks!
4949

50-
pod 'DynamsoftBarcodeReaderBundle','10.4.3000'
50+
pod 'DynamsoftBarcodeReaderBundle','10.4.3001'
5151

5252
end
5353
```

programming/objectivec-swift/user-guide/configure-barcode-scanner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ needAutoGenerateSidebar: true
1111

1212
# Configure the barcode scan settings
1313

14-
When developing with [`BarcodeScannerActivity`](../api-reference/barcode-scanner/barcode-scanner-activity.md), you can add configurations via the [`BarcodeScannerConfig`](../api-reference/barcode-scanner/barcode-scanner-config.md) class. These articles will guide you on how to configure the settings.
14+
When developing with [`BarcodeScannerViewController`](../api-reference/barcode-scanner/barcode-scanner-view-controller.md), you can add configurations via the [`BarcodeScannerConfig`](../api-reference/barcode-scanner/barcode-scanner-config.md) class. This page will guide you on how to configure the settings.
1515

1616
- [Specify Barcode Formats](scanner-barcode-formats.md)
1717
- [Enable Multiple Barcodes Scanning](scanner-multi-barcodes.md)

programming/objectivec-swift/user-guide/scan-multi-barcodes.md

Whitespace-only changes.

programming/objectivec-swift/user-guide/scanner-barcode-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default-layout
3-
title: Customize the UI of BarcodeScanner - Dynamsoft Barcode Reader for iOS
3+
title: Specify Barcode Formats for BarcodeScanner - Dynamsoft Barcode Reader for iOS
44
description: Customize the UI of BarcodeScanner on iOS platform.
55
keywords: BarcodeScanner, scanner, iOS, scan region, torch button, close button, scan laser
66
needAutoGenerateSidebar: true

programming/objectivec-swift/user-guide/scanner-customize-ui.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ region.bottom = 0.7;
3838
config.scanRegion = region;
3939
config.isTorchButtonVisible = false;
4040
config.isScanLaserVisible = false;
41+
config.isCameraToggleButtonVisible = true;
4142
```
4243
2.
4344
```swift
@@ -51,6 +52,7 @@ region.bottom = 0.7
5152
config.scanRegion = region
5253
config.isTorchButtonVisible = false
5354
config.isScanLaserVisible = false
55+
config.isCameraToggleButtonVisible = true
5456
```
5557

5658
**Related APIs**
@@ -59,3 +61,4 @@ config.isScanLaserVisible = false
5961
- [`isTorchButtonVisible`]({{ site.dbr_ios_api }}barcode-scanner/barcode-scanner-config.html#istorchbuttonvisible)
6062
- [`isScanLaserVisible`]({{ site.dbr_ios_api }}barcode-scanner/barcode-scanner-config.html#isscanlaservisible)
6163
- [`isCloseButtonVisible`]({{ site.dbr_ios_api }}barcode-scanner/barcode-scanner-config.html#isclosebuttonvisible)
64+
- [`isCameraToggleButtonVisible`]({{ site.dbr_ios_api }}barcode-scanner/barcode-scanner-config.html#iscameratogglebuttonvisible)

0 commit comments

Comments
 (0)