SuggestCallback (API Reference)
Package com.here.sdk.search
Interface SuggestCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The method will be called on the main thread when a suggest call has been completed.
The first argument indicates an error in case of a failure. The second argument contains the results.
Both arguments cannot be null at the same time - or not null at the same time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonSuggestCompleted(SearchError searchError, List<Suggestion> suggestions) The method will be called on the main thread when a suggest call has been completed.
-
Method Details
-
onSuggestCompleted
The method will be called on the main thread when a suggest call has been completed. The first argument indicates an error in case of a failure. The second argument contains the results. Both arguments cannot be
nullat the same time - or notnullat the same time.- Parameters:
searchError-An error enum indicating what went wrong. It is
nullfor an operation that succeeds.suggestions-The list of suggestion results. It is
nullin case of an error.
-