public static interface

PDFViewCtrl.TextSearchListener

com.pdftron.pdf.PDFViewCtrl.TextSearchListener

Class Overview

Used for receiving notifications in UI thread during the process of text search. A text search thread can be started via findText(String, boolean, boolean, boolean, boolean).

Summary

Public Methods
abstract void onTextSearchEnd(PDFViewCtrl.TextSearchResult result)
Called in UI thread after the text search thread stops.
abstract void onTextSearchProgress(int progress)
Called regularly in UI thread while the text search thread is running.
abstract void onTextSearchStart()
Called in UI thread immediately before the text search thread begins.

Public Methods

public abstract void onTextSearchEnd (PDFViewCtrl.TextSearchResult result)

Called in UI thread after the text search thread stops.

Parameters
result search result.

public abstract void onTextSearchProgress (int progress)

Called regularly in UI thread while the text search thread is running. This is useful for UI updating, say a progress bar.

Parameters
progress progress indicator in the range [0, 100]

public abstract void onTextSearchStart ()

Called in UI thread immediately before the text search thread begins.