@@ -30,12 +30,14 @@ final class MRZScannerConfig
3030| [`setTemplateFile`](#settemplatefile) | Sets the template with a file path or a JSON string. |
3131| [`setTorchButtonVisible`](#settorchbuttonvisible) | Sets whether to display the torch button when scanning. |
3232| [`setBeepEnabled`](#setbeepenabled) | Sets whether the beep sound is triggered or not when a MRZ is scanned. |
33+ | [`setVibrateEnabled`](#setvibrateenabled) | Sets whether the vibration is triggered or not when a MRZ is scanned. |
3334| [`setCloseButtonVisible`](#setclosebuttonvisible) | Sets the visibility status of the close button for users to close the scanner page. |
3435| [`setDocumentType`](#setdocumenttype) | Sets the type of document to scan, such as ID cards or passports. |
3536| [`getLicense`](#getlicense) | Returns the license string. |
3637| [`getTemplateFile`](#gettemplatefile) | Returns the template with a file path or a JSON string. |
3738| [`isTorchButtonVisible`](#istorchbuttonvisible) | Returns the visibility status of the torch button. |
3839| [`isBeepEnabled`](#isbeepenabled) | Returns the play status of the beep sound when a MRZ is scanned. |
40+ | [`isVibrateEnabled`](#isvibrateenabled) | Returns the play status of the vibration when a MRZ is scanned. |
3941| [`isCloseButtonVisible`](#isclosebuttonvisible) | Returns the visibility status of the close button. |
4042| [`getDocumentType`](#getdocumenttype) | Returns the type of document to scan, such as ID cards or passports. |
4143| [`isGuideFrameVisible`](#isguideframevisible) | Returns the visibility status of the guide frame on the display. |
@@ -96,6 +98,18 @@ void setBeepEnabled(boolean beepEnabled);
9698
9799`beepEnabled`: A boolean value that determines whether to enable the beep sound.
98100
101+ ### setVibrateEnabled
102+
103+ Sets whether the vibration is triggered or not when a MRZ is scanned.
104+
105+ ```java
106+ void setVibrateEnabled(boolean vibrateEnabled);
107+ ```
108+
109+ **Parameter(s)**
110+
111+ `vibrateEnabled`: A boolean value that determines whether to enable the vibration.
112+
99113### setCloseButtonVisible
100114
101115Sets the visibility status of the close button for users to close the scanner page.
@@ -168,6 +182,18 @@ boolean isBeepEnabled();
168182
169183A boolean value that determines whether the beep sound is enabled.
170184
185+ ### isVibrateEnabled
186+
187+ Returns whether the vibration is enabled.
188+
189+ ```java
190+ boolean isVibrateEnabled();
191+ ```
192+
193+ **Return Value**
194+
195+ A boolean value that determines whether the vibration is enabled.
196+
171197### isCloseButtonVisible
172198
173199Returns whether the close button is visible.
0 commit comments