sendRequest abstract method

TaskHandle sendRequest(
  1. String href,
  2. 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.

  • href The direct link.

  • callback Callback 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);