public class

FindTextTask

extends AsyncTask<Params, Progress, Result>
java.lang.Object
   ↳ android.os.AsyncTask<Params, Progress, Result>
     ↳ com.pdftron.pdf.asynctask.FindTextTask

Class Overview

A class that asynchronously finds a pattern through the document

Summary

Nested Classes
interface FindTextTask.Callback Callback interface invoked when a pattern is found in the document. 
[Expand]
Inherited Fields
From class android.os.AsyncTask
Public Constructors
FindTextTask(PDFViewCtrl pdfViewCtrl, String pattern, int textSearchMode, ArrayList<SearchResultsView.Section> sectionList, ArrayList<String> sectionTitleList)
Public Methods
String getPattern()
boolean isFinished()
boolean isRunning()
void setCallback(FindTextTask.Callback callback)
Sets the callback listener.
[Expand]
Inherited Methods
From class android.os.AsyncTask
From class java.lang.Object

Public Constructors

public FindTextTask (PDFViewCtrl pdfViewCtrl, String pattern, int textSearchMode, ArrayList<SearchResultsView.Section> sectionList, ArrayList<String> sectionTitleList)

Public Methods

public String getPattern ()

public boolean isFinished ()

public boolean isRunning ()

public void setCallback (FindTextTask.Callback callback)

Sets the callback listener. Sets the callback to null when the task is cancelled.

Parameters
callback The callback when the task is finished