public interface ScanListener
Modifier and Type | Method and Description |
---|---|
void |
finished(String error)
Scanning session has finished
|
List<Capability> |
getCapabilitiesToBeSet(int pageIndex,
long pageId)
List of capabilities to be set for the given page - in most cases, you should only set capabilities for the first page.
|
Object |
getPageOutputTarget(int pageIndex,
long pageId)
Where to store scan data for the given page either File or OutputStream
|
void |
pageFinished(int pageIndex,
long pageId,
String error)
Indicates a page scan is done.
|
void |
pageProgress(int pageIndex,
long pageId,
int percent)
Reports the progress of page scanning.
|
void |
pageStarted(int pageIndex,
long pageId)
Indicates a page scan in this session has been started.
|
void |
started()
Scanning session has started; an ADF session could result multiple pages scanned.
|
List<Capability> getCapabilitiesToBeSet(int pageIndex, long pageId)
pageIndex
- pageId
- Object getPageOutputTarget(int pageIndex, long pageId)
pageIndex
- pageId
- null
to cancel the scan.void started()
void pageStarted(int pageIndex, long pageId)
void pageProgress(int pageIndex, long pageId, int percent)
percent
- a number between 0 to 100.void pageFinished(int pageIndex, long pageId, String error)
error
- error message or null
if succeeded.void finished(String error)
error
- error message or null
if succeeded.Copyright © Asprise Software. All Rights Reserved. Please visit the product page at asprise.com