SearchCallback


public interface SearchCallback

Known direct subclasses
SearchTemplate.SearchCallback

A listener for search updates.


A listener used in a SearchHeader and a SearchTemplate to receive the search text updates from a user.

Summary

Public methods

default void

Notifies that the user has submitted the search and the given searchText is the final term.

default void

Notifies that the current searchText has changed.

Public methods

onSearchSubmitted

Added in 1.9.0-alpha02
default void onSearchSubmitted(@NonNull String searchText)

Notifies that the user has submitted the search and the given searchText is the final term.

Parameters
@NonNull String searchText

the search text that the user typed

onSearchTextChanged

Added in 1.9.0-alpha02
default void onSearchTextChanged(@NonNull String searchText)

Notifies that 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.

Parameters
@NonNull String searchText

the current search text that the user has typed