Package com.artifex.solib
Interface SOSearchListener
public interface SOSearchListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled if the search is cancelled.booleanCalled when the search reaches the end of the document.voiderror()Called when the search encounters an error.voidfound(int page, android.graphics.RectF box) Called when the search terminates successfully.voidnotFound()Called when the search terminates unsuccessfully.voidprogressing(int page) Called to indicate that the search has progressed to a new page.booleanCalled when the search reaches the start of the document.
-
Method Details
-
progressing
void progressing(int page) Called to indicate that the search has progressed to a new page. May be called multiple times during a search.- Parameters:
page- current page being searched.
-
found
void found(int page, android.graphics.RectF box) Called when the search terminates successfully. No further callbacks will be made.- Parameters:
page- page on which match foundbox- bounding box of match
-
notFound
void notFound()Called when the search terminates unsuccessfully. No further callbacks will be made. -
startOfDocument
boolean startOfDocument()Called when the search reaches the start of the document.- Returns:
- false to stop the search here - no further callbacks will be made. Return true to continue searching.
-
endOfDocument
boolean endOfDocument()Called when the search reaches the end of the document.- Returns:
- false to stop the search here - no further callbacks will be made. Return true to continue searching.
-
error
void error()Called when the search encounters an error. No further callbacks will be made. -
cancelled
void cancelled()Called if the search is cancelled. No further callbacks will be made.
-