Package 

Interface SearchCallback


  • 
    public interface SearchCallback
    
                        

    Callback interface for search operations.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSearchResult(SearchResult result) Called when a match is found.
      abstract Unit onSearchComplete(Integer totalMatches) Called when search is complete.
      abstract Unit onSearchError(Throwable error) Called when search fails.
      • Methods inherited from class java.lang.Object

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

      • onSearchComplete

         abstract Unit onSearchComplete(Integer totalMatches)

        Called when search is complete.

        Parameters:
        totalMatches - Total number of matches found
      • onSearchError

         abstract Unit onSearchError(Throwable error)

        Called when search fails.

        Parameters:
        error - The exception that occurred