Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Class BusinessFilter
java.lang.Object
↳ com.yandex.mapkit.search.BusinessFilter
class BusinessFilter implements Serializable
A filter that could be applied to search results.
Filters can be either boolean (that is Wi-Fi availability in a cafe) or enumerated (that is cuisine type in a restaurant). Enumerated filters support multiple selected values (OR-combined), to search, for example, for restaurants with Armenian or Georgian cuisine at once.
This class is used in two separate ways: server response contains all filters applicable to current search request and client can use some of these filters to get more specific results in the following search requests
Nested Class Summary
Modifier and Type |
Interface |
Description |
|
Value for boolean filters. |
|
|
Value for enum filters. |
|
|
Value for range filters. |
|
|
Value for date filters. |
|
|
Possible filter values. |
Summary
Constructors
Signature and Description |
BusinessFilter() |
BusinessFilter(@NonNull java.lang.String id, |
Methods
Type and modifiers |
Method and Description |
|
getId() |
|
getName() |
|
getDisabled() |
|
getIconLight() |
|
getIconDark() |
|
getSingleSelect() |
|
getValues() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
|
Constuctors
BusinessFilter
BusinessFilter() |
Use constructor with parameters in your code.
This one is for serialization only!
BusinessFilter
BusinessFilter(@NonNull java.lang.String id, |
Methods
getId
@NonNull |
Filter id.
getName
@Nullable |
Human-readable filter name.
Optional field, can be null.
getDisabled
@Nullable |
The filter should not be used by the client, because filter is either used already (selected:true, disabled:true) or nothing would be found (selected:false, disabled:true).
Optional field, can be null.
getIconLight
@Nullable |
Optional field, can be null.
getIconDark
@Nullable |
Optional field, can be null.
getSingleSelect
@Nullable |
Only one of multiple available values should be selected.
Optional field, can be null.
getValues
@NonNull |
Filter values.
serialize
@Override |
getNativeName
java.lang.String getNativeName() |