public static interface

FindTextTask.Callback

com.pdftron.pdf.asynctask.FindTextTask.Callback
Known Indirect Subclasses

Class Overview

Callback interface invoked when a pattern is found in the document.

Summary

Public Methods
abstract void onFindTextTaskCancelled()
Called when the task of finding text has been cancelled.
abstract void onFindTextTaskFinished(int numResults, ArrayList<TextSearchResult> results, HashMap<TextSearchResult, ArrayList<Double>> highlights)
Called when the task of finding text has been terminated.
abstract void onFindTextTaskProgressUpdated(boolean foundResultOnPage, int pagesSearched, ArrayList<TextSearchResult> results)
Called when the task of finding text has been updated.
abstract void onFindTextTaskStarted()
Called when the task of finding text has started.

Public Methods

public abstract void onFindTextTaskCancelled ()

Called when the task of finding text has been cancelled.

public abstract void onFindTextTaskFinished (int numResults, ArrayList<TextSearchResult> results, HashMap<TextSearchResult, ArrayList<Double>> highlights)

Called when the task of finding text has been terminated.

Parameters
numResults The number of result
results The results

public abstract void onFindTextTaskProgressUpdated (boolean foundResultOnPage, int pagesSearched, ArrayList<TextSearchResult> results)

Called when the task of finding text has been updated.

Parameters
foundResultOnPage True if result on the page has been found
results The text search results

public abstract void onFindTextTaskStarted ()

Called when the task of finding text has started.