SearchBar.SearchBarListener


public interface SearchBar.SearchBarListener


Interface for receiving notification of search query changes.

Summary

Public methods

abstract void

Method invoked when the IME is being dismissed.

abstract void

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

abstract void

Method invoked when the search query is submitted.

Public methods

onKeyboardDismiss

Added in 1.1.0
abstract void onKeyboardDismiss(String query)

Method invoked when the IME is being dismissed.

Parameters
String query

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

onSearchQueryChange

Added in 1.1.0
abstract void onSearchQueryChange(String query)

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

Parameters
String query

The current full query.

onSearchQuerySubmit

Added in 1.1.0
abstract 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
String query

The query being submitted.