GetSearchSuggestionsViewGeneratorCallback

public interface GetSearchSuggestionsViewGeneratorCallback


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

Summary

Public methods

abstract void
onError(String errorMessage)

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

abstract void

Called when a search suggestions UI view generator is received.

Public methods

onError

abstract void onError(String errorMessage)

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

Parameters
String errorMessage

message about the error.

onSuccess

abstract void onSuccess(SearchSuggestionsViewGenerator generator)

Called when a search suggestions UI view generator is received.

Parameters
SearchSuggestionsViewGenerator generator

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