Interface SuggestCallbackExtended
- Last UpdatedJun 10, 2025
- 1 minute read
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SuggestCallbackExtended
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 notnull
at the same time. This API is not supported by offline search.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onSuggestExtendedCompleted(SearchError searchError, java.util.List<Suggestion> suggestions, ResponseDetails responseDetails)
The method will be called on the main thread when a suggest call has been completed.
-
-
-
Method Detail
-
onSuggestExtendedCompleted
void onSuggestExtendedCompleted(@Nullable SearchError searchError, @Nullable java.util.List<Suggestion> suggestions, @Nullable ResponseDetails responseDetails)
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 notnull
at the same time. This API is not supported by offline search.- Parameters:
searchError
-An error enum indicating what went wrong. It is
null
for an operation that succeeds.suggestions
-The list of suggestion results. It is
null
in case of an error.responseDetails
-Additional information provided with response. It is
null
in case of an error.
-
-