IScanCallback Interface
This is a callback interface that is used for managing scanning operations. This interface is implemented on the client-side.
An object receiving notifications through this interface's methods may do the following inside the methods' implementation:
- Process any Windows messages, which is useful in applications having User Interface, to avoid the effect that the application "is not responding" during long operations.
- Report errors which occurred during scanning to the user.
- Cancel processing.
Methods
Name | Description |
---|---|
OnError | Delivers to the client information about the errors that occurred during scanning. |
OnImageScanned | Delivers information about the course of the scanning operation and allows it to be stopped if necessary. |
OnScanComplete | Gives notification that the scanning operation has been completed. |
Input parameter
This object is passed as an input parameter to the following methods:
- Scan and BeginScan methods of the ScanSource object.
Samples
This object is used in the following code samples: Scanning.
See also
17.09.2024 15:14:40