-
public interface SearchCallbackCallback interface for search operations.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonSearchResult(SearchResult result)Called when a match is found. abstract UnitonSearchComplete(Integer totalMatches)Called when search is complete. abstract UnitonSearchError(Throwable error)Called when search fails. -
-
Method Detail
-
onSearchResult
abstract Unit onSearchResult(SearchResult result)
Called when a match is found.
- Parameters:
result- The search result
-
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
-
-
-
-