public interface

SearchBar.SearchBarListener

 androidx.leanback.widget.SearchBar.SearchBarListener

Overview

Interface for receiving notification of search query changes.

Summary

Methods
public voidonKeyboardDismiss(java.lang.String query)

Method invoked when the IME is being dismissed.

public voidonSearchQueryChange(java.lang.String query)

Method invoked when the search bar detects a change in the query.

public voidonSearchQuerySubmit(java.lang.String query)

Method invoked when the search query is submitted.

Methods

public void onSearchQueryChange(java.lang.String query)

Method invoked when the search bar detects a change in the query.

Parameters:

query: The current full query.

public void onSearchQuerySubmit(java.lang.String query)

Method invoked when the search query is submitted.

This method can be called without a preceeding onSearchQueryChange, in particular in the case of a voice input.

Parameters:

query: The query being submitted.

public void onKeyboardDismiss(java.lang.String query)

Method invoked when the IME is being dismissed.

Parameters:

query: The query set in the search bar at the time the IME is being dismissed.