SearchEngineUiAdapter

class SearchEngineUiAdapter(    view: SearchResultsView,     searchEngine: SearchEngine,     offlineSearchEngine: OfflineSearchEngine,     locationEngine: LocationProvider? = defaultLocationProvider(),     historyDataProvider: HistoryDataProvider = ServiceProvider.INSTANCE.historyDataProvider(),     mainThreadWorker: MainThreadWorker = SearchSdkMainThreadWorker)

Helper class that implements search-specific logic and shows search results on the SearchResultsView.

Constructors

Link copied to clipboard
fun SearchEngineUiAdapter(    view: SearchResultsView,     searchEngine: SearchEngine,     offlineSearchEngine: OfflineSearchEngine,     locationEngine: LocationProvider? = defaultLocationProvider(),     historyDataProvider: HistoryDataProvider = ServiceProvider.INSTANCE.historyDataProvider(),     mainThreadWorker: MainThreadWorker = SearchSdkMainThreadWorker)

Types

Link copied to clipboard
interface SearchListener

Search results view listener.

Functions

Link copied to clipboard

Adds a listener to be notified of search events.

Link copied to clipboard

Removes a previously added listener.

Link copied to clipboard
fun search(query: String, options: SearchOptions = GlobalViewPreferences.DEFAULT_SEARCH_OPTIONS)

Performs forward geocoding. Should be called on the main thread.

Link copied to clipboard
fun select(feature: Feature)

Given a Feature, via a map click event, performs a retrieve call.

Properties

Link copied to clipboard

Search mode of this view, if mode is SearchMode.ONLINE will be used, OfflineSearchEngine otherwise.