# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

# SearchView.OnSuggestionListener

`public static interface SearchView.OnSuggestionListener`
``

android.widget.SearchView.OnSuggestionListener

Callback interface for selection events on suggestions. These callbacks are only relevant when a SearchableInfo has been specified by `SearchView.setSearchableInfo(SearchableInfo)`.

## Summary

### Public methods
`abstract boolean` | `onSuggestionClick(int position)` Called when a suggestion was clicked.
`abstract boolean` | `onSuggestionSelect(int position)` Called when a suggestion was selected by navigating to it.

## Public methods

### onSuggestionClick

    public abstract boolean onSuggestionClick (int position)

Called when a suggestion was clicked.

Parameters
`position` | `int`: the absolute position of the clicked item in the list of suggestions.

Returns
`boolean` | true if the listener handles the event and wants to override the default behavior of launching any intent or submitting a search query specified on that item. Return false otherwise.

### onSuggestionSelect

    public abstract boolean onSuggestionSelect (int position)

Called when a suggestion was selected by navigating to it.

Parameters
`position` | `int`: the absolute position in the list of suggestions.

Returns
`boolean` | true if the listener handles the event and wants to override the default behavior of possibly rewriting the query based on the selected item, false otherwise.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*