VintaSoft Twain .NET SDK 15.2: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / getSupportedEsclScanInputSources Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    getSupportedEsclScanInputSources Method
    In This Topic
    Returns supported scan input sources of opened eSCL device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: Vintasoft.Twain.WebEsclScanInputSourceEnumJS[]
    value = instance.getSupportedEsclScanInputSources();
    
    
    function getSupportedEsclScanInputSources() : WebEsclScanInputSourceEnumJS[];
    

    Return Value

    An array that contains supported scan input sources of eSCL device.
    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during getting value of device capability.
    Example

    // Gets information about supported scan sources of opened eSCL device.
    function getSupportedEsclScanInputSources(esclDevice) {
        try {
            console.log("eSCL device: " + esclDevice.get_DeviceName());
            // if eSCL device is not opened
            if (!esclDevice.get_IsOpened()) {
                console.log("Device is not opened. Please open device.");
                return;
            }
            // get information about supported scan input sources of eSCL device
            var esclScanInputSources = esclDevice.getSupportedEsclScanInputSources();
            console.log("Supported scan input sources:");
            // for each supported scan input source
            for (var i = 0; i < esclScanInputSources.length; i++) {
                // output information about scan input source
                console.log("- " + esclScanInputSources[i]);
            }
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Browser Compatibility
    9
    See Also