public class

GenerateHighlightsTask

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

Class Overview

A class that asynchronously generates highlights for all instances of a specified text in the document

Summary

Nested Classes
interface GenerateHighlightsTask.Callback Callback interface invoked when search highlights are obtained. 
[Expand]
Inherited Fields
From class android.os.AsyncTask
Public Constructors
GenerateHighlightsTask(PDFViewCtrl pdfViewCtrl, int pageStart, int pageEnd, String searchPattern, boolean matchCase, boolean matchWholeWords, boolean useRegularExpressions)
Class constructor
Public Methods
void setCallback(GenerateHighlightsTask.Callback callback)
Sets the callback listener.
[Expand]
Inherited Methods
From class android.os.AsyncTask
From class java.lang.Object

Public Constructors

public GenerateHighlightsTask (PDFViewCtrl pdfViewCtrl, int pageStart, int pageEnd, String searchPattern, boolean matchCase, boolean matchWholeWords, boolean useRegularExpressions)

Class constructor

Parameters
pdfViewCtrl The PDFViewCtrl
pageStart The start page to search
pageEnd The end page to search
searchPattern The search pattern
matchCase True if it should match case
matchWholeWords True if it should match the whole words
useRegularExpressions True if it should use regular expressions

Public Methods

public void setCallback (GenerateHighlightsTask.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