Package 

Interface TextSearchContext


  • 
    public interface TextSearchContext
    
                        

    An interface representing the context for searching text within a PDF document.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit prepareSearch() Prepares the search by initializing the search engine and setting initial search flags.
      abstract Unit startSearch() Starts a new search for the query within the specified page.
      abstract Unit stopSearch() Stops the current search.
      abstract Integer getPageIndex() The index of the page to search.
      abstract String getQuery() The search query string.
      abstract Boolean getIsMatchCase() Whether to match the case of the query.
      abstract Boolean getIsMatchWholeWord() Whether to match only whole words.
      abstract Integer getCountResult() The number of search results found.
      abstract Boolean getHasNext() Returns whether there are more results to be found in the current search direction.
      abstract Boolean getHasPrev() Returns whether there are previous results in the current search direction.
      abstract RectF getSearchNext() The bounding rectangle of the next search result.
      abstract RectF getSearchPrev() The bounding rectangle of the previous search result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • prepareSearch

         abstract Unit prepareSearch()

        Prepares the search by initializing the search engine and setting initial search flags.

      • startSearch

         abstract Unit startSearch()

        Starts a new search for the query within the specified page.

      • getHasNext

         abstract Boolean getHasNext()

        Returns whether there are more results to be found in the current search direction.

      • getHasPrev

         abstract Boolean getHasPrev()

        Returns whether there are previous results in the current search direction.

      • getSearchNext

         abstract RectF getSearchNext()

        The bounding rectangle of the next search result.

      • getSearchPrev

         abstract RectF getSearchPrev()

        The bounding rectangle of the previous search result.