Skip to content

Commit c5c682e

Browse files
authored
Merge pull request #611 from ztyyLV/Jackson-branch
Jackson branch
2 parents b3a9830 + db7cc5c commit c5c682e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,13 @@ interface Dynamsoft.DWT {
6060
GetWebTwain(ContainerId?: string): WebTwain;
6161
GetWebTwainEx(WebTwainId: string): WebTwain;
6262
Load(): void;
63-
Unload(): void;
63+
Unload(): void;
64+
RemoveAllAuthorizations: function () {};
65+
OnWebTwainNotFound: function () {};
6466
OnWebTwainPostExecute: function () {};
6567
OnWebTwainPreExecute: function () {};
68+
OnWebTwainReady: function () {};
69+
OnWebTwainWillInit: function () {};
6670
}
6771

6872
/**

info/api/WebTwain_IO.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,9 +1296,7 @@ HTTPDownloadEx(
12961296
path: string,
12971297
type: Dynamsoft.DWT.EnumDWT_ImageType | number,
12981298
successCallback: () => void,
1299-
failureCallback: (
1300-
errorCode: number,
1301-
errorString: string) => void
1299+
failureCallback: (errorCode: number, errorString: string) => void
13021300
): void;
13031301
```
13041302

@@ -1383,8 +1381,8 @@ HTTPDownloadThroughPost(
13831381
host: string,
13841382
path: string,
13851383
type: Dynamsoft.DWT.EnumDWT_ImageType | number,
1386-
onEmptyResponse: () => void,
1387-
onServerReturnedSomething: (errorCode: number, errorString: string, response: string) => void,
1384+
successCallback: () => void,
1385+
failureCallback: (errorCode: number, errorString: string, response?: any) => void,
13881386
): void;
13891387
```
13901388

@@ -1396,12 +1394,12 @@ HTTPDownloadThroughPost(
13961394

13971395
`type`: The format of the file. Please refer to [EnumDWT_ImageType]({{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_imagetype).
13981396

1399-
`onEmptyResponse`: A callback function that is executed if the response is empty.
1397+
`successCallback`: A callback function that is executed if the request succeeds.
14001398

1401-
`onServerReturnedSomething`: A callback function that is executed if the response is not empty.
1399+
`failureCallback`: A callback function that is executed if the request fails.
14021400
- `errorCode`: The error code.
14031401
- `errorString`: The error string.
1404-
- `response`: The response string.
1402+
- `response`: The response from your server.
14051403

14061404
**Availability**
14071405

0 commit comments

Comments
 (0)