attach abstract method

TaskHandle attach(
  1. MyPlaces dataSource,
  2. OnTaskCompleted callback
)

Attach data source into SearchEngine instance.

Places from MyPlaces ranked the same way as places from default source. New data source replaces old one. Note: Only OfflineSearchEngine supports search over MyPlaces.

  • dataSource The data source.

  • callback The callback to be called when task is completed.

Returns TaskHandle. Handle that will be used to manipulate the execution of the task.

Implementation

TaskHandle attach(MyPlaces dataSource, OnTaskCompleted callback);