Interface Search

com.yandex.mapkit.search

public interface Search

Methods

SearchLayer createSearchLayer(@NonNull MapWindow mapWindow)

Gets the search_layer object.

SearchManager createSearchManager(@NonNull SearchManagerType searchManagerType)

Creates a manager that allows to search for various geographical objects using a variety of parameters.

boolean isValid()

Tells if this Search is valid or no.

Method Detail

createSearchLayer

public SearchLayer createSearchLayer (@NonNull MapWindow mapWindow)

Gets the search_layer object.

createSearchManager

public SearchManager createSearchManager (@NonNull SearchManagerType searchManagerType)

Creates a manager that allows to search for various geographical objects using a variety of parameters.

isValid

public boolean isValid ()

Tells if this Search is valid or no.

Any other method (except for this one) called on an invalid Search will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.