In This Topic
Sends an asynchronous request to close TWAIN/SANE device manager.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceManagerJS(service);
var value; // Type: any
// Parameters
var successFunc; // Type: function
var errorFunc; // Type: function
value = instance.closeAsync(successFunc, errorFunc);
function closeAsync(
: Function,
: Function
) : any;
Parameters
- successFunc
- A function that will be executed if request is executed successfully.
Function prototype: "successFunc(twainDeviceManager)", where 'twainDeviceManager' parameter is an instance of WebTwainDeviceManagerJS class.
- errorFunc
- A function that will be executed if request is failed.
Function prototype: "errorFunc(twainDeviceManager, errorMessage)", where 'twainDeviceManager' parameter is an instance of WebTwainDeviceManagerJS class, 'errorMessage' parameter is string that describes error.
Exceptions
Exception | Description |
| Thrown if device manager is not opened OR error occurs during closing the device manager. |
Remarks
This function sends an asynchronous request to close TWAIN device manager. If you want to use synchronous request instead of asynchronous request, please use WebTwainDeviceManagerJS.close function.
Browser Compatibility
See Also