sendRequest abstract method
- String href,
- SearchCallback callback
Performs an asynchronous request by using the given href.
The href value can be obtained from Suggestion objects, which are the result of successful call to SearchEngine.suggestExtended. Currently supports only /v1/discover path. Provides candidate places sorted by relevance.
-
hrefThe direct link. -
callbackCallback which receives result on the main thread.
Returns TaskHandle. Handle that will be used to manipulate execution of the task.
Implementation
TaskHandle sendRequest(String href, SearchCallback callback);