SearchTemplate.SearchCallback
public interface SearchTemplate.SearchCallback
A listener for search updates.
Summary
Public methods |
|
|---|---|
default void |
onSearchSubmitted(@NonNull String searchText)Notifies that the user has submitted the search and the given |
default void |
onSearchTextChanged(@NonNull String searchText)Notifies the current |
Public methods
onSearchSubmitted
default void onSearchSubmitted(@NonNull String searchText)
Notifies that the user has submitted the search and the given searchText is the final term.
onSearchTextChanged
default void onSearchTextChanged(@NonNull String searchText)
Notifies the current searchText has changed.
The host may invoke this callback as the user types a search text. The frequency of these updates is not guaranteed to be after every individual keystroke. The host may decide to wait for several keystrokes before sending a single update.