Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Interface SuggestSession
interface SuggestSession
Summary
Methods
Type and modifiers |
Method and Description |
void |
suggest(@NonNull java.lang.String text, |
void |
reset() |
Methods
suggest
void suggest(@NonNull java.lang.String text, |
Begin a suggest request.
The current request is cancelled, if present.
Parameters |
|
|
Text to get suggestions for. |
|
Current map window position. |
|
Various additional suggest parameters. See the mapkit.search.SuggestOptions definition for details. |
|
Function called when the result is ready. |
reset
void reset() |
Cancels current suggest request and resets internal state.
Next queries via this suggest session will be seen as a new suggest session from backend point of view.