Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Class Feature
java.lang.Object
↳ com.yandex.mapkit.search.Feature
class Feature implements Serializable
Describes some common feature of organizations.
Can be of three types:
-
boolean (like on/off switch, as for free Wi-Fi availability).
-
enumerated (can have multiple values at once, like cuisine types in a cafe).
-
text (like enumerated but with any strings instead of predefined values).
Nested Class Summary
Modifier and Type |
Interface |
Description |
|
Value for enumerated features. |
|
|
||
|
A variant combining possible feature values. |
Summary
Constructors
Signature and Description |
Feature() |
Feature(@NonNull java.lang.String id, |
Methods
Type and modifiers |
Method and Description |
|
getId() |
|
getValue() |
|
getName() |
|
getAref() Optional field, can be null. |
|
getIconLight() |
|
getIconDark() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
|
Constuctors
Feature
Feature() |
Use constructor with parameters in your code.
This one is for serialization only!
Feature
Feature(@NonNull java.lang.String id, |
Methods
getId
@NonNull |
Machine readable feature identifier.
getValue
@NonNull |
Feature value (depends on feature type).
getName
@Nullable |
Human readable localized representation.
Optional field, can be null.
getAref
@Nullable |
Reference to information source providing given feature (see mapkit.Attribution)
Optional field, can be null.
getIconLight
@Nullable |
Optional field, can be null.
getIconDark
@Nullable |
Optional field, can be null.
serialize
@Override |
getNativeName
java.lang.String getNativeName() |