getSupportedCapabilitiesAsync(Vintasoft.Twain.WebTwainDeviceCapabilityUsageModeEnumJS,function,function) Method
In This Topic
Sends an asynchronous request to get information about all capabilities supported by TWAIN device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: any
// Parameters
var usageMode; // Type: WebTwainDeviceCapabilityUsageModeEnumJS
var successFunc; // Type: function
var errorFunc; // Type: function
value = instance.getSupportedCapabilitiesAsync(usageMode, successFunc, errorFunc);
function getSupportedCapabilitiesAsync(
: WebTwainDeviceCapabilityUsageModeEnumJS,
: Function,
: Function
) : any;
Parameters
- usageMode
- An instance of WebTwainDeviceCapabilityUsageModeEnumJS class.
- successFunc
- A function that will be executed if request is executed successfully.
Function prototype: "successFunc(twainDevice, capInfos)", where 'twainDevice' parameter is an instance of WebTwainDeviceJS class, 'capInfos' parameter is an array that contains information about TWAIN device capabilities.
- errorFunc
- A function that will be executed if request is failed.
Function prototype: "errorFunc(twainDevice, errorMessage)", where 'twainDevice' parameter is an instance of WebTwainDeviceJS class, 'errorMessage' parameter is string that describes error.
Exceptions
Exception | Description |
| Thrown if argument has wrong type OR device is not opened OR error occurs during getting information about supported device capabilities. |
Remarks
This function sends an asynchronous request to get information about all capabilities supported by TWAIN device. If you want to use synchronous request instead of asynchronous request, please use WebTwainDeviceJS.getSupportedCapabilities function.
Browser Compatibility
See Also