public interface

SearchTemplate.SearchCallback

 androidx.car.app.model.SearchTemplate.SearchCallback

Overview

A listener for search updates.

Summary

Methods
public voidonSearchSubmitted(java.lang.String searchText)

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

public voidonSearchTextChanged(java.lang.String searchText)

Notifies the current searchText has changed.

Methods

public void onSearchTextChanged(java.lang.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.

Parameters:

searchText: the current search text that the user has typed

public void onSearchSubmitted(java.lang.String searchText)

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

Parameters:

searchText: the search text that the user typed