var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit); var value; // Type: any // Parameters var usageMode; // Type: number var successFunc; // Type: function var errorFunc; // Type: function value = instance.getSupportedCapabilitiesAsync(usageMode, successFunc, errorFunc);
function getSupportedCapabilitiesAsync(
usageModeAn integer value, which defines usage mode of TWAIN device capability.: number,
successFuncA function that will be executed if request is executed successfully.: Function,
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.
errorFuncA function that will be executed if request is failed.: Function
Function prototype: "errorFunc(twainDevice, errorMessage)", where 'twainDevice' parameter is an instance of WebTwainDeviceJS class, 'errorMessage' parameter is string that describes error.
) : any;
Parameters
- usageMode
- An integer value, which defines usage mode of TWAIN device capability.
- 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.