GetSearchSuggestionsViewGeneratorCallback

interface GetSearchSuggestionsViewGeneratorCallback


Callback for events when retrieving search suggestions UI view from the backend.

Summary

Public functions

Unit
onError(errorMessage: String!)

Called when a getting search suggestions UI view generator error happens.

Unit

Called when a search suggestions UI view generator is received.

Public functions

onError

fun onError(errorMessage: String!): Unit

Called when a getting search suggestions UI view generator error happens.

Parameters
errorMessage: String!

message about the error.

onSuccess

fun onSuccess(generator: SearchSuggestionsViewGenerator!): Unit

Called when a search suggestions UI view generator is received.

Parameters
generator: SearchSuggestionsViewGenerator!

the view generator which can generate a view containing all the search suggestions.