Interface that defines the callback methods used when an image is acquired from the active device by ScanSession.acquireImages().
More...
Inherits Serializable.
List of all members.
Public Member Functions |
void | onError (ScanError error) |
| Callback executed if an error occurs during scanning.
|
void | onFinished () |
| Callback executed when all pages have been scanned from the active device.
|
void | onImage (IScanImage scannedImage) |
| Callback executed when an image has been scanned from the active device.
|
void | onProgress (long curBytes, long maxBytes) |
| Callback executed as the scan of the current page progresses.
|
Detailed Description
Interface that defines the callback methods used when an image is acquired from the active device by ScanSession.acquireImages().
Member Function Documentation
Callback executed if an error occurs during scanning.
- Parameters:
-
Callback executed when all pages have been scanned from the active device.
Callback executed when an image has been scanned from the active device.
- Parameters:
-
scannedImage | Image of the most recently scanned page. |
void onProgress |
( |
long |
curBytes, |
|
|
long |
maxBytes |
|
) |
| |
Callback executed as the scan of the current page progresses.
- Parameters:
-
curBytes | The number of image bytes read from the scanner for the current page. |
maxBytes | The maximum number of image bytes expected to be read from the scanner for the current page. |