Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Class Category
java.lang.Object
↳ com.yandex.mapkit.search.Category
class Category implements Serializable
Single category (also known as rubric) description.
Summary
Constructors
Signature and Description |
Category() |
Category(@NonNull java.lang.String name, |
Methods
Type and modifiers |
Method and Description |
|
getName() |
|
getCategoryClass() |
|
getTags() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
|
Constuctors
Category
Category() |
Use constructor with parameters in your code.
This one is for serialization only!
Category
Category(@NonNull java.lang.String name, |
Methods
getName
@NonNull |
Category name.
getCategoryClass
@Nullable |
Category class.
Different categories can have the same class. For example, "Bar", "Cafe" and "Restaurant" categories inhabit "restaurants" category class.
Optional field, can be null.
getTags
@NonNull |
Additional non-structured data for the category.
serialize
@Override |
getNativeName
java.lang.String getNativeName() |