SearchFragmentListener

Reports on specific user interactions with the search components.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun onCommandInsert(command: String)

Reports when the input matches a command.

Link copied to clipboard

Called when the user clicks the search back button.

Link copied to clipboard
abstract fun onSearchError(throwable: Throwable)

Reports on any errors that occur during a search.

Link copied to clipboard
abstract fun onSearchQueryChanged(input: String)

Reports on text updates.

Link copied to clipboard
abstract fun onSearchResultClick(placeDetails: PlaceDetails)

Called when the user selects an item from the search results list.