You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programming/flutter/api-reference/mrz-scan-result.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ MRZData? mrzData;
39
39
40
40
### status
41
41
42
-
Represents the status of the result, which can be finished, canceled or exception.
42
+
Represents the status of the result, which can be finished, canceled or exception. The status comes in the form of a [`EnumResultStatus`](result-status.md).
43
43
44
44
```dart
45
45
EnumResultStatus status;
@@ -55,15 +55,15 @@ The result status can be one of three things:
55
55
56
56
### errorCode
57
57
58
-
Represents the error code should something go wrong during the MRZ scanning process.
58
+
Returns the error code when an exception occurs. This value is only valid when resultStatus is `exception`.
59
59
60
60
```dart
61
61
int? errorCode;
62
62
```
63
63
64
64
### errorString
65
65
66
-
Represents the error message associated with the error code should something go wrong during the MRZ scanning process.
66
+
Returns the error message associated with the error code when an exception occurs. This value is only valid when resultStatus is `exception`.
Copy file name to clipboardExpand all lines: programming/flutter/api-reference/mrz-scanner-config.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,8 @@ final class MRZScannerConfig
34
34
|[`isBeepEnabled`](#isbeepenabled)|*bool*| Determines whether a beep sound is triggered upon a successful MRZ scan. |
35
35
|[`isCloseButtonVisible`](#isclosebuttonvisible)|*bool*| Represents the visibility status of the close button. |
36
36
|[`isGuideFrameVisible`](#isguideframevisible)|*bool*| Represents the visibility status of the guide frame on the display. |
37
-
|[`isCameraToggleButtonVisible`](#Iscameratogglebuttonvisible)|*bool*| Specifies whether the camera toggle button is displayed or not. |
37
+
|[`isCameraToggleButtonVisible`](#iscameratogglebuttonvisible)|*bool*| Specifies whether the camera toggle button is displayed or not. |
38
+
|[`isVibrateEnabled`](#isvibrateenabled)|*bool*| Controls the scanner's ability to make the scanning device vibrate upon a successful MRZ scan. |
38
39
39
40
### license
40
41
@@ -92,9 +93,9 @@ Controls the visibility of the close button on the scanner's UI. If true, a clos
92
93
bool? isCloseButtonVisible;
93
94
```
94
95
95
-
### IsGuideFrameVisible
96
+
### isGuideFrameVisible
96
97
97
-
Represents the visibility status of the guide frame on the display.
98
+
Determines the visibility status of the guide frame on the display. If set to true, a visual overlay will be displayed in the centre of the camera view to allow users to easily line up the MRZ document
98
99
99
100
```dart
100
101
bool IsGuideFrameVisible { get; set; };
@@ -107,3 +108,11 @@ Specifies whether the camera toggle button is displayed. This button lets users
107
108
```dart
108
109
bool? isCameraToggleButtonVisible;
109
110
```
111
+
112
+
### isVibrateEnabled
113
+
114
+
Controls the scanner's ability to make the scanning device vibrate upon a successful MRZ scan. When enabled (true), the scanner will vibrate to provide haptic feedback if the device supports it.
Copy file name to clipboardExpand all lines: programming/flutter/user-guide/customize-mrz-scanner.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,25 +15,25 @@ When developing with `MRZScanner` component (see the [User Guide](index.md)), yo
15
15
16
16
## `MRZScannerConfig` Overview
17
17
18
-
The [**`MRZScannerConfig`**]({{ site.api }}mrz-scanner.html#mrzscannerconfig) class is capable of configuring almost all customization options applicable to MRZ scanning use cases with the MRZ Scanner. The MRZ Scanner uses passes an `MRZScannerConfig` object to the constructor when creating an MRZ Scanner instance. `MRZScannerConfig` contains the following properties:
18
+
The [**`MRZScannerConfig`**](../api-reference/mrz-scanner-config.md) class is capable of configuring almost all customization options applicable to MRZ scanning use cases with the MRZ Scanner. The MRZ Scanner uses passes an `MRZScannerConfig` object to the constructor when creating an MRZ Scanner instance. `MRZScannerConfig` contains the following properties:
19
19
20
20
1.**`license`** - the license key is the only property whose ***value must be specified when instantiating the MRZ Scanner instance***. If the license is undefined, invalid, or expired, the MRZ Scanner cannot proceed with scanning, and instead displays a pop-up error message instructing the user to contact the app administrator to resolve this license issue.
21
21
22
22
2.**`documentType`** - specifies the type of document that the MRZ Scanner will recognize. This property accepts values defined in the EnumDocumentType such as `EnumDocumentType.all`, `EnumDocumentType.id`, or `EnumDocumentType.passport`. It helps the scanner to optimize its processing based on the expected document type. To learn more about the different document types that are supported, please refer to the [Supported Document Types](index.md#supported-machine-readable-travel-document-types) section of the user guide.
23
23
24
24
3.**`templateFile`** - a template file is a JSON file or JSON string that contains a series of algorithm parameter settings (called Capture Vision templates) that is usually used for very specific and customized scanning and parsing scenarios. The `templateFile` points to the location of the JSON file. The MRZ Scanner comes with a default template file, but you may choose to use a custom template to target specialized use cases. We recommend contacting the [Dynamsoft Technical Support Team](https://www.dynamsoft.com/company/contact/) for assistance with template customization.
25
25
26
-
4.**`isBeepEnabled`** - a boolean that determines whether a beep sound is triggered upon a successful MRZ scan. When enabled (true), the scanner will play a sound to provide audible feedback.
26
+
4.**`isBeepEnabled`**(default value `false`) - a boolean that determines whether a beep sound is triggered upon a successful MRZ scan. When enabled (true), the scanner will play a sound to provide audible feedback.
27
27
28
-
5.**`isCameraToggleButtonVisible`** - a boolean that specifies whether the camera toggle button is displayed. This button lets users switch between available cameras (e.g., front and rear).
28
+
5.**`isCameraToggleButtonVisible`**(default value `false`) - a boolean that specifies whether the camera toggle button is displayed. This button lets users switch between available cameras (e.g., front and rear).
29
29
30
-
6.**`isCloseButtonVisible`** - a boolean to control the visibility of the close button on the scanner's UI. If true, a close button will be displayed allowing users to exit the MRZ scanning interface.
30
+
6.**`isCloseButtonVisible`**(default value `true`) - a boolean to control the visibility of the close button on the scanner's UI. If true, a close button will be displayed allowing users to exit the MRZ scanning interface.
31
31
32
32
7.**`isGuideFrameVisible`** (default value `true`) - serves as a toggle to show or hide the guide frame in the UI during scanning. The guide frame assists users in properly aligning the document for optimal MRZ detection. When set to true, a visual overlay is displayed on the scanning interface.
33
33
34
-
8.**`isTorchButtonVisible`** - determines whether the torch (flashlight) toggle button is visible on the scanning interface. Set to true to allow users to switch the device's flashlight on or off during MRZ scanning.
34
+
8.**`isTorchButtonVisible`**(default value `true`) - determines whether the torch (flashlight) toggle button is visible on the scanning interface. Set to true to allow users to switch the device's flashlight on or off during MRZ scanning.
35
35
36
-
9.**`isVibrateEnabled`** - controls the scanner's ability to make the scanning device vibrate upon a successful MRZ scan. When enabled (true), the scanner will vibrate to provide haptic feedback if the device supports it.
36
+
9.**`isVibrateEnabled`**(default value `false`) - controls the scanner's ability to make the scanning device vibrate upon a successful MRZ scan. When enabled (true), the scanner will vibrate to provide haptic feedback if the device supports it.
37
37
38
38
Next, we go over the different ways that these properties can be used to customize the scanner with a few examples.
0 commit comments