lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

SearchBar.SearchBarListener

public static interface SearchBar.SearchBarListener

android.support.v17.leanback.widget.SearchBar.SearchBarListener


Interface for receiving notification of search query changes.

Summary

Public methods

abstract void onKeyboardDismiss(String query)

Method invoked when the IME is being dismissed.

abstract void onSearchQueryChange(String query)

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

abstract void onSearchQuerySubmit(String query)

Method invoked when the search query is submitted.

Public methods

onKeyboardDismiss

added in version 22.1.0
void onKeyboardDismiss (String query)

Method invoked when the IME is being dismissed.

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

onSearchQueryChange

added in version 22.1.0
void onSearchQueryChange (String query)

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

Parameters
query String: The current full query.

onSearchQuerySubmit

added in version 22.1.0
void onSearchQuerySubmit (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 String: The query being submitted.