Skip to content

Commit 691ce65

Browse files
update to internal commit 24e3af68
1 parent 29fd23f commit 691ce65

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class BarcodeScannerConfig
3333
| [`setScanRegion`](#setscanregion) | Sets a scan region where only the barcodes located in the scan region can be decoded. |
3434
| [`setTorchButtonVisible`](#settorchbuttonvisible) | Sets whether to display the torch button when scanning or not. |
3535
| [`setBeepEnabled`](#setbeepenabled) | Sets whether to trigger a beep sound when a barcode is detected. |
36+
| [`setVibrateEnabled`](#setvibrateenabled) | Sets whether to trigger a vibration when a barcode is detected. |
3637
| [`setScanLaserVisible`](#setscanlaservisible) | Sets whether to display a scan laser when scanning. |
3738
| [`setAutoZoomEnabled`](#setautozoomenabled) | Sets whether to enable the auto-zoom feature when scanning. |
3839
| [`setCloseButtonVisible`](#setclosebuttonvisible) | Sets whether to display a button that can close the scanner page. |
@@ -47,6 +48,7 @@ final class BarcodeScannerConfig
4748
| [`getBarcodeFormats`](#getbarcodeformats) | Returns the barcode format(s) that the library will accept. |
4849
| [`getScanRegion`](#getscanregion) | Returns the scan region. |
4950
| [`isBeepEnabled`](#isbeepenabled) | Returns whether the beep sound is enabled. |
51+
| [`isVibrateEnabled`](#isvibrateenabled) | Returns whether the vibration is enabled. |
5052
| [`isScanLaserVisible`](#isscanlaservisible) | Returns whether the scan laser is visible. |
5153
| [`isAutoZoomEnabled`](#isautozoomenabled) | Returns whether the auto-zoom feature is enabled. |
5254
| [`isCloseButtonVisible`](#isclosebuttonvisible) | Returns whether the close button is visible. |
@@ -139,6 +141,18 @@ void setBeepEnabled(boolean beepEnabled);
139141

140142
`beepEnabled`: A boolean value that determines whether to enable the beep sound.
141143

144+
### setVibrateEnabled
145+
146+
Sets whether to trigger a vibration when a barcode is detected.
147+
148+
```java
149+
void setVibrateEnabled(boolean vibrateEnabled);
150+
```
151+
152+
**Parameter(s)**
153+
154+
`vibrateEnabled`: A boolean value that determines whether to enable the vibration.
155+
142156
### setScanLaserVisible
143157

144158
Sets whether to display a scan laser when scanning.
@@ -211,6 +225,18 @@ void setCameraToggleButtonVisible(boolean cameraToggleButtonVisible);
211225

212226
`cameraToggleButtonVisible`: A boolean value that determines whether to display the camera toggle button.
213227

228+
### setZoomFactor
229+
230+
Sets the zoom factor.
231+
232+
```java
233+
void setZoomFactor(float zoomFactor);
234+
```
235+
236+
**Parameter(s)**
237+
238+
`zoomFactor`: The zoom factor.
239+
214240
### getLicense
215241

216242
Returns the license key string.
@@ -295,6 +321,18 @@ boolean isBeepEnabled();
295321

296322
A boolean value that determines whether the beep sound is enabled.
297323

324+
### isVibrateEnabled
325+
326+
Returns a boolean indicating whether or not the vibration is enabled.
327+
328+
```java
329+
boolean isVibrateEnabled();
330+
```
331+
332+
**Return Value**
333+
334+
A boolean value that determines whether the vibration is enabled.
335+
298336
### isScanLaserVisible
299337

300338
Returns a boolean indicating whether or not the scan laser is visible.
@@ -366,3 +404,15 @@ boolean isCameraToggleButtonVisible();
366404
**Return Value**
367405

368406
A boolean value that determines whether the camera toggle button is displayed.
407+
408+
### getZoomFactor
409+
410+
Returns the zoom factor.
411+
412+
```java
413+
float getZoomFactor();
414+
```
415+
416+
**Return Value**
417+
418+
`zoomFactor`: The zoom factor.

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class BarcodeScannerConfig : NSObject
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. |
4141
| [`isBeepEnabled`](#isbeepenabled) | *BOOL* | Sets or returns whether the beep sound is enabled when a barcode is found. |
42+
| [`isVibrateEnabled`](#isvibrateenabled) | *BOOL* | Sets or returns whether the vibration is enabled when a barcode is found. |
4243
| [`isScanLaserVisible`](#isscanlaservisible) | *BOOL* | Sets or returns whether or not the scan laser is visible. |
4344
| [`isAutoZoomEnabled`](#isautozoomenabled) | *BOOL* | Sets or returns whether or not the auto-zoom feature of the Camera Enhancer is enabled. |
4445
| [`isCloseButtonVisible`](#isclosebuttonvisible) | *BOOL* | Sets or returns whether or not the close button is visible. |
@@ -158,6 +159,23 @@ Sets or returns a boolean indicating whether or not the beep sound is enabled.
158159
var isBeepEnabled: Bool { get set }
159160
```
160161

162+
### isVibrateEnabled
163+
164+
Sets or returns a boolean indicating whether or not the vibration is enabled.
165+
166+
<div class="sample-code-prefix"></div>
167+
>- Objective-C
168+
>- Swift
169+
>
170+
>1.
171+
```objc
172+
@property(nonatomic, assign) BOOL isVibrateEnabled;
173+
```
174+
2.
175+
```swift
176+
var isVibrateEnabled: Bool { get set }
177+
```
178+
161179
### isScanLaserVisible
162180

163181
Sets or returns a boolean indicating whether or not the scan laser is visible.

0 commit comments

Comments
 (0)