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
MWC can scan from objects that satisfy this interface. When unassigned, MWC uses DDS by default.
653
+
654
+
#### Properties
655
+
656
+
##### `initialize()`
657
+
658
+
Initialize scanner resources.
659
+
660
+
###### **Type**
661
+
662
+
```typescript
663
+
asyncinitialize(): Promise<any>
664
+
```
665
+
666
+
#### `launch()`
667
+
668
+
Launch the scanner, and return a promise of a scan result that resolves once the scan completes. This scan result contains an `_imageData` object which contains a `toBlob()` that returns the scanned image as a blob. `imageData` (**not `_imageData`**) must be set to `true`.
The most notable improvement in this version is the pluggable scanner feature. This allows MWC to integrate any custom scanner, e.g. our existing [MRZ scanner].
17
+
The most notable improvement in this version is the pluggable scanner feature. This allows MWC to integrate any custom scanner.<!--, e.g. our existing [MRZ scanner](https://www.dynamsoft.com/mrz-scanner/docs/web/introduction/index.html). -->
18
18
19
19
### Features
20
20
21
21
1. Add Pluggable Scanner feature which integrates any scanner satisfying the following:
22
-
1. Implements the `ImplementMWCScanner` interface
22
+
1. Implements the [`MWCScanner`](https://www.dynamsoft.com/mobile-web-capture/docs/api/mobile-web-capture.html#mwcscanner) interface
23
23
2. Implements a `launch()` method to return a result that includes:
24
24
1.`_imageData` with a `toBlob()` function
25
-
2.`status.code` equal to `EnumresultStatus.RS_SUCCESS`
25
+
2.`imageData: true`
26
+
3.`status.code` equal to `EnumresultStatus.RS_SUCCESS`
26
27
2. Update Document Scanner to [version 1.2](https://github.com/Dynamsoft/document-scanner-javascript/releases/tag/v1.2.0)
27
28
3. Change MWC Header color to make the component visually distinct
28
29
4. Move the "Select All" and "Cancel" buttons to the header in the Document View
0 commit comments