Interface SearchCallback
- Last UpdatedDec 18, 2024
- 1 minute read
Package com.here.sdk.search
Interface SearchCallback
-
- 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 SearchCallback
The method will be called on the main thread when a search 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onSearchCompleted(SearchError searchError, java.util.List<Place> places)
The method will be called on the main thread when a search call has been completed.
-
-
-
Method Detail
-
onSearchCompleted
void onSearchCompleted(@Nullable SearchError searchError, @Nullable java.util.List<Place> places)
The method will be called on the main thread when a search 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.- Parameters:
searchError
-An error enum indicating what went wrong. It is
null
for an operation that succeeds.places
-The list of search results. It is
null
in case of an error.
-
-