Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Enum SearchManagerType
java.lang.Object
↳ java.lang.Enum
↳ com.yandex.mapkit.search.SearchManagerType
final enum SearchManagerType
Search manager type.
Describes difference in online/offline search handling.
Enum Constant Summary
Enum Constants |
Description |
Online search manager. |
|
Offline search manager. |
|
Combined search manager. |
Summary
Methods
Type and modifiers |
Method and Description |
|
values() |
|
valueOf(java.lang.String name) |
Enum Constants Detail
ONLINE
|
ONLINE |
Online search manager.
Always tries to use online search even if network is not available.
OFFLINE
|
OFFLINE |
Offline search manager.
Always tries to use offline search even if network is available.
Примечание
This feature is not available in the free MapKit version.
COMBINED
|
COMBINED |
Combined search manager.
Decision to use online or offline search is based on internal timeout. If server manages to respond within given time, then online search result is returned. Otherwise uses offline search. Will combine online and offline search result in single session (hence the name). Timeout logic is applied on each resubmit until first response from offline search is returned to the listener. After that timeout is reduced to zero for all following resubmits.
Примечание
This feature is not available in the free MapKit version.
Methods
values
SearchManagerType[] values() |
valueOf
SearchManagerType valueOf(java.lang.String name) |