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` .
227
224
228
225
### `RegisterEvent()`
229
-
226
+
[We removed OnWebTWainReady...]: #
230
227
Registers an environmental event. Typically the event is `OnWebTwainReady` which is triggered when the initialization completes.
231
228
232
229
### `Unload()`
233
230
234
231
Destroys all `WebTwain` instances and cuts off the connection to the Dynamsoft Service.
235
232
236
-
### `RemoveAllAuthorizations()`
237
-
238
-
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.
239
-
240
233
### `UseDefaultViewer`
241
234
242
235
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.
@@ -272,3 +265,11 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement.
272
265
#### `loaderBarClassName`
273
266
274
267
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.
268
+
269
+
#### `OnWebTwainReady`
270
+
271
+
A built-in callback triggered when the Web TWAIN environment is loaded
272
+
273
+
#### `OnWebTwainError`
274
+
275
+
A built-in callback triggered when the Web TWAIN environment cannot load
0 commit comments