@@ -45,9 +45,9 @@ constructor(config: MobileWebCaptureConfig)
4545
4646#### Parameters
4747
48- | Parameter | Type | Description |
49- | --------- | ------------------------ | ---------------------------------------------------- |
50- | ` config ` | ` MobileWebCaptureConfig ` | The configuration settings for ** MobileWebCapture** . |
48+ | Parameter | Type | Description |
49+ | --------- | --------------------------------------------------- | ---------------------------------------------------- |
50+ | ` config ` | [ ` MobileWebCaptureConfig ` ] ( #mobilewebcaptureconfig ) | The configuration settings for ** MobileWebCapture** . |
5151
5252#### Example
5353``` javascript
@@ -73,14 +73,15 @@ Starts the **Mobile Web Capture** workflow.
7373
7474#### Syntax
7575``` typescript
76- launch (file ?: File | string ): Promise < void >
76+ async launch (file ?: File | string , view ?: EnumMWCStartingViews )
7777```
7878
7979#### Parameters
8080
81- | Parameter | Type | Description |
82- | --------- | --------------------------- | ------------------------------------------ |
83- | ` file ` | ` File \| string ` (optional) | A file or document name to open at launch. |
81+ | Parameter | Type | Description |
82+ | --------- | --------------------------------- | ------------------------------------------ |
83+ | ` file ` | ` File \| string ` (optional) | A file or document name to open at launch. |
84+ | ` view ` | ` EnumMWCStartingViews ` (optional) | The first View to display upon launch. |
8485
8586#### Throws
8687- An error if ** MWC** is already running.
@@ -122,7 +123,7 @@ dispose(): Promise<void>
122123```
123124
124125#### Example
125- ``` typescript
126+ ``` javascript
126127await mobileWebCapture .dispose ();
127128console .log (" MWC resources released." );
128129```
@@ -166,7 +167,7 @@ document.getElementById("initialFile").onchange = async function () {
166167interface MobileWebCaptureConfig {
167168 license? : string ;
168169 container? : HTMLElement | string ;
169- exportConfig? : ExportConffig ;
170+ exportConfig? : ExportConfig ;
170171 showLibraryView? : boolean ;
171172 onClose? : () => void ;
172173
@@ -184,23 +185,25 @@ interface MobileWebCaptureConfig {
184185
185186#### Properties
186187
187- | Property | Type | Description |
188- | ----------------------- | ----------------------- | -------------------------------------------------------------------------------- |
189- | ` license ` | ` string ` | The license key for using ** Mobile Web Capture (MWC)** . |
190- | ` container ` | ` HTMLElement \| string ` | The container element or selector for rendering the ` MobileWebCapture ` instance. |
191- | ` exportConfig ` | ` ExportConfig ` | Configuration for exporting captured documents. |
192- | ` showLibraryView ` | ` boolean ` | Determines if the ** LibraryView** is shown (default: ` true ` ). |
193- | ` onClose ` | ` () => void ` | Callback function triggered when the ` MobileWebCapture ` instance is closed. |
194- | ` libraryViewConfig ` | ` LibraryViewConfig ` | Configuration for the ** LibraryView** . |
195- | ` documentViewConfig ` | ` DocumentViewConfig ` | Configuration for the ** DocumentView** . |
196- | ` pageViewConfig ` | ` PageViewConfig ` | Configuration for the ** PageView** . |
197- | ` transferViewConfig ` | ` TransferViewConfig ` | Configuration for the ** TransferView** . |
198- | ` historyViewConfig ` | ` HistoryViewConfig ` | Configuration for the ** HistoryView** . |
199- | ` documentScannerConfig ` | ` DocumentScannerConfig ` | Configuration for the built-in ** DocumentScanner** . |
188+ | Property | Type | Description |
189+ | ----------------------- | ------------------------------------------- | -------------------------------------------------------------------------------- |
190+ | ` license ` | ` string ` | The license key for using ** Mobile Web Capture (MWC)** . |
191+ | ` container ` | ` HTMLElement \| string ` | The container element or selector for rendering the ` MobileWebCapture ` instance. |
192+ | ` ddvResourcePath ` | ` string ` | File path to DDV resources. |
193+ | ` exportConfig ` | [ ` ExportConfig ` ] ( #exportconfig ) | Configuration for exporting captured documents. |
194+ | ` showLibraryView ` | ` boolean ` | Determines if the ** LibraryView** is shown (default: ` true ` ). |
195+ | ` onClose ` | ` () => void ` | Callback function triggered when the ` MobileWebCapture ` instance is closed. |
196+ | ` libraryViewConfig ` | [ ` LibraryViewConfig ` ] ( #libraryviewconfig ) | Configuration for the ** LibraryView** . |
197+ | ` documentViewConfig ` | [ ` DocumentViewConfig ` ] ( #documentviewconfig ) | Configuration for the ** DocumentView** . |
198+ | ` pageViewConfig ` | [ ` PageViewConfig ` ] ( #pageviewconfig ) | Configuration for the ** PageView** . |
199+ | ` transferViewConfig ` | [ ` TransferViewConfig ` ] ( #transferviewconfig ) | Configuration for the ** TransferView** . |
200+ | ` transferViewConfig ` | [ ` TransferViewConfig ` ] ( #transferviewconfig ) | Configuration for the ** TransferView** . |
201+ | ` scanner ` | [ ` MWCScanner ` ] ( #mwcscanner ) | Configured document scanner module (uses DDS by default). |
202+ | ` documentScannerConfig ` | ` DocumentScannerConfig ` | Configuration for the built-in ** DocumentScanner** . |
200203
201204##### See Also
202205
203- - [ DocumentScannerConfig] ( https://www.dynamsoft.com/mobile-web-capture/docs/api/document-scanner.html#documentscannerconfig )
206+ - [ ` DocumentScannerConfig ` ] ( https://www.dynamsoft.com/mobile-web-capture/docs/api/document-scanner.html#documentscannerconfig )
204207
205208#### Example
206209
@@ -236,10 +239,10 @@ interface LibraryViewConfig {
236239
237240#### Properties
238241
239- | Property | Type | Description |
240- | ---------------------- | ----------------------------- | ---------------------------------------------------------------------------- |
241- | ` emptyContentConfig ` | ` EmptyContentConfig ` | Configuration for the content displayed on the empty ** LibraryView** screen. |
242- | ` toolbarButtonsConfig ` | ` LibraryToolbarButtonsConfig ` | Configuration for the toolbar buttons in ** LibraryView** . |
242+ | Property | Type | Description |
243+ | ---------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------- |
244+ | ` emptyContentConfig ` | ` EmptyContentConfig ` | Configuration for the content displayed on the empty ** LibraryView** screen. |
245+ | ` toolbarButtonsConfig ` | [ ` LibraryToolbarButtonsConfig ` ] ( #librarytoolbarbuttonsconfig ) | Configuration for the toolbar buttons in ** LibraryView** . |
243246
244247#### Example 1: Display A Message In An Empty Library
245248
@@ -293,10 +296,10 @@ interface DocumentViewConfig {
293296
294297#### Properties
295298
296- | Property | Type | Description |
297- | ---------------------- | ------------------------------ | ----------------------------------------------------------------------------- |
298- | ` emptyContentConfig ` | ` EmptyContentConfig ` | Configuration for the content displayed on the empty ** DocumentView** screen. |
299- | ` toolbarButtonsConfig ` | ` DocumentToolbarButtonsConfig ` | Configuration for the toolbar buttons in ** DocumentView** . |
299+ | Property | Type | Description |
300+ | ---------------------- | --------------------------------------------------------------- | ----------------------------------------------------------------------------- |
301+ | ` emptyContentConfig ` | ` EmptyContentConfig ` | Configuration for the content displayed on the empty ** DocumentView** screen. |
302+ | ` toolbarButtonsConfig ` | [ ` DocumentToolbarButtonsConfig ` ] ( #documenttoolbarbuttonsconfig ) | Configuration for the toolbar buttons in ** DocumentView** . |
300303
301304#### Example 1: Display A Message In An Empty Document
302305
@@ -418,10 +421,10 @@ interface HistoryViewConfig {
418421
419422#### Properties
420423
421- | Property | Type | Description |
422- | ---------------------- | ----------------------------- | ---------------------------------------------------------------------------- |
423- | ` emptyContentConfig ` | ` EmptyContentConfig ` | Configuration for the content displayed on the empty ** HistoryView** screen. |
424- | ` toolbarButtonsConfig ` | ` HistoryToolbarButtonsConfig ` | Configuration for the toolbar buttons in ** HistoryView** . |
424+ | Property | Type | Description |
425+ | ---------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------- |
426+ | ` emptyContentConfig ` | ` EmptyContentConfig ` | Configuration for the content displayed on the empty ** HistoryView** screen. |
427+ | ` toolbarButtonsConfig ` | [ ` HistoryToolbarButtonsConfig ` ] ( #historytoolbarbuttonsconfig ) | Configuration for the toolbar buttons in ** HistoryView** . |
425428
426429### ` TransferViewConfig `
427430
@@ -434,9 +437,9 @@ interface TransferViewConfig {
434437
435438#### Properties
436439
437- | Property | Type | Description |
438- | ---------------------- | ------------------------------ | ---------------------------------------------------------- |
439- | ` toolbarButtonsConfig ` | ` TransferToolbarButtonsConfig ` | Configuration for the toolbar buttons in ** TransferView** . |
440+ | Property | Type | Description |
441+ | ---------------------- | --------------------------------------------------------------- | ---------------------------------------------------------- |
442+ | ` toolbarButtonsConfig ` | [ ` TransferToolbarButtonsConfig ` ] ( #transfertoolbarbuttonsconfig ) | Configuration for the toolbar buttons in ** TransferView** . |
440443
441444## Toolbar Button Configurations
442445
@@ -458,7 +461,7 @@ export type ToolbarButtonConfig = Pick<"icon" | "label" | "isHidden">;
458461| ` isHidden ` | ` boolean ` (optional) | Determines if the button is hidden. |
459462
460463#### Example
461- ``` typescript
464+ ``` javascript
462465const mobileWebCapture = new Dynamsoft.MobileWebCapture ({
463466 license: " YOUR_LICENSE_KEY_HERE" , // Replace this with your actual license key
464467 documentViewConfig: {
0 commit comments