| ASP.NET Ajax Javascript (Specification) | |
|---|---|
function unload( callback : function ) : ImGearIsisOperationStatus; | |
| ASP.NET Ajax Javascript (Usage) | |
|---|---|
var resultVar = instanceOfImGearIsisScanner.unload(function); | |
Parameters
- callback
- Callback which is called when the scanner is unloaded.
Return Value
ImGearIsisOperationStatus value.The JavaScript code below demonstrates how to unload a scanner:
| JavaScript | Copy Code |
|---|---|
function unloadScannerCallback(status) { if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) { alert(status.get_statusMessage()); } } scannerSession.get_scanner().unload(unloadScannerCallback); | |
This is an asynchronous method.
You can use this method to release the scanner for use by a different application when you no longer need to scan new images. You might do this if your application performs lengthy post-scanning operations that require the session to remain open.