VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / getCapabilitiesAsync Methods / getCapabilitiesAsync(Vintasoft.Twain.WebDeviceCapabilityIdEnumJS[],number,function,function) Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    getCapabilitiesAsync(Vintasoft.Twain.WebDeviceCapabilityIdEnumJS[],number,function,function) Method
    In This Topic
    Sends an asynchronous request to get values of TWAIN device capabilities.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: any
    
    // Parameters
    var twainCapabilityIds; // Type: WebDeviceCapabilityIdEnumJS[]
    var usageMode; // Type: number
    var successFunc; // Type: function
    var errorFunc; // Type: function
    
    value = instance.getCapabilitiesAsync(twainCapabilityIds, usageMode, successFunc, errorFunc);
    
    
    function getCapabilitiesAsync(
    twainCapabilityIds
    An array of instances of WebDeviceCapabilityIdEnumJS class, which define identifiers of TWAIN device capabilities.
    : WebDeviceCapabilityIdEnumJS[],
    usageMode
    An integer value, which defines usage mode of TWAIN device capability.
    : number,
    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.
    : Function,
    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.
    : Function
    ) : any;

    Parameters

    twainCapabilityIds
    An array of instances of WebDeviceCapabilityIdEnumJS class, which define identifiers of TWAIN device capabilities.
    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.
    Exceptions
    ExceptionDescription
    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 TWAIN device capabilities. If you want to use synchronous request instead of asynchronous request, please use WebTwainDeviceJS.getCapabilities function.

    Browser Compatibility
    9
    See Also