In This Topic
Sends an asynchronous request to clear this image collection.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageCollectionJS(twainDeviceManager);
var value; // Type: any
// Parameters
var successFunc; // Type: function
var errorFunc; // Type: function
value = instance.clearAsync(successFunc, errorFunc);
function clearAsync(
: Function,
: Function
) : any;
Parameters
- successFunc
- A function that will be executed if request is executed successfully. Function prototype: "successFunc(imageCollection)", where 'imageCollection' parameter is an instance of WebAcquiredImageCollectionJS class.
- errorFunc
- A function that will be executed if request is failed. Function prototype: "errorFunc(imageCollection, errorMessage)", where 'imageCollection' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.
Exceptions
Exception | Description |
| Thrown if image collection is not cleared. |
Remarks
This function sends an asynchronous request to clear this image collection. If you want to use synchronous request instead of asynchronous request, please use WebAcquiredImageCollectionJS.clear function.
Browser Compatibility
See Also