Accusoft USB Scanner SDK
IScanMessageHandler Interface Reference

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

void onError ( ScanError  error)

Callback executed if an error occurs during scanning.

Parameters:
errorSee ScanError.
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.

Parameters:
scannedImageImage of the most recently scanned page.
void onProgress ( long  curBytes,
long  maxBytes 
)

Callback executed as the scan of the current page progresses.

Parameters:
curBytesThe number of image bytes read from the scanner for the current page.
maxBytesThe maximum number of image bytes expected to be read from the scanner for the current page.