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
Initiates the library. If there are predefined `Containers` , one `WebTwain` instance will be created for each `Container` .
223
223
224
224
### `RegisterEvent()`
225
-
225
+
[We removed OnWebTWainReady...]: #
226
226
Registers an environmental event. Typically the event is `OnWebTwainReady` which is triggered when the initialization completes.
227
227
228
228
### `Unload()`
229
229
230
230
Destroys all `WebTwain` instances and cuts off the connection to the Dynamsoft Service.
231
231
232
-
### `RemoveAllAuthorizations()`
233
-
234
-
Removes the specific authorizations made by end users on a client machine. Only effective when the security feature is enabled for local files, scanners or cameras.
235
-
236
232
### `UseDefaultViewer`
237
233
238
234
Whether to use the built-in viewer. If it is set to `false` , the file `dynamsoft.viewer.js` is not loaded at all and there is no way to add it back later. Therefore, only set it to `false` when you absolutely won't need the viewer or will be building your own viewer.
@@ -268,3 +264,30 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement.
268
264
#### `loaderBarClassName`
269
265
270
266
Specify the class name of the DIV element that contains the loader bar. With this class, you can customize the loader bar even further with CSS.
267
+
268
+
#### `OnWebTwainReady`
269
+
270
+
A built-in callback triggered when the Web TWAIN resources have completed loading
271
+
272
+
**Example**
273
+
```javascript
274
+
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady',
275
+
Dynamsoft_OnReady //The typical function for initalizing the environment once the resources have loaded
276
+
);
277
+
```
278
+
279
+
#### `OnWebTwainError`
280
+
281
+
A built-in callback triggered when an error is detected when laoding the Web TWAIN environment
0 commit comments