SearchBar.SearchBarListener
interface SearchBar.SearchBarListener
Interface for receiving notification of search query changes.
Summary
Public functions |
|
|---|---|
Unit |
onKeyboardDismiss(query: String!)Method invoked when the IME is being dismissed. |
Unit |
onSearchQueryChange(query: String!)Method invoked when the search bar detects a change in the query. |
Unit |
onSearchQuerySubmit(query: String!)Method invoked when the search query is submitted. |
Public functions
onKeyboardDismiss
fun onKeyboardDismiss(query: String!): Unit
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
fun onSearchQueryChange(query: String!): Unit
Method invoked when the search bar detects a change in the query.
| Parameters | |
|---|---|
query: String! |
The current full query. |
onSearchQuerySubmit
fun onSearchQuerySubmit(query: String!): Unit
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. |