android-components / mozilla.components.browser.search.suggestions / SearchSuggestionClient

# SearchSuggestionClient

`class SearchSuggestionClient` (source)

Provides an interface to get search suggestions from a given SearchEngine.

### Exceptions

FetchException | `class FetchException : Exception` Exception types for errors caught while getting a list of suggestions
ResponseParserException | `class ResponseParserException : Exception`

### Constructors

<init> | `SearchSuggestionClient(searchEngine: SearchEngine, fetcher: SearchSuggestionFetcher)` Provides an interface to get search suggestions from a given SearchEngine.

### Functions

getSuggestions | `suspend fun getSuggestions(query: String): List<String>?` Gets search suggestions for a given query