Interface SOSearchListener


public interface SOSearchListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called if the search is cancelled.
    boolean
    Called when the search reaches the end of the document.
    void
    Called when the search encounters an error.
    void
    found(int page, android.graphics.RectF box)
    Called when the search terminates successfully.
    void
    Called when the search terminates unsuccessfully.
    void
    progressing(int page)
    Called to indicate that the search has progressed to a new page.
    boolean
    Called when the search reaches the start of the document.
  • Method Details

    • progressing

      void progressing(int page)
      Called to indicate that the search has progressed to a new page. May be called multiple times during a search.
      Parameters:
      page - current page being searched.
    • found

      void found(int page, android.graphics.RectF box)
      Called when the search terminates successfully. No further callbacks will be made.
      Parameters:
      page - page on which match found
      box - bounding box of match
    • notFound

      void notFound()
      Called when the search terminates unsuccessfully. No further callbacks will be made.
    • startOfDocument

      boolean startOfDocument()
      Called when the search reaches the start of the document.
      Returns:
      false to stop the search here - no further callbacks will be made. Return true to continue searching.
    • endOfDocument

      boolean endOfDocument()
      Called when the search reaches the end of the document.
      Returns:
      false to stop the search here - no further callbacks will be made. Return true to continue searching.
    • error

      void error()
      Called when the search encounters an error. No further callbacks will be made.
    • cancelled

      void cancelled()
      Called if the search is cancelled. No further callbacks will be made.