Важно

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()
Use constructor with parameters in your code.

Category(@NonNull java.lang.String name,
         @Nullable java.lang.String categoryClass,
         @NonNull java.util.List<java.lang.String> tags)

Methods

Type and modifiers

Method and Description

synchronized java.lang.String

getName()
Category name.

synchronized java.lang.String

getCategoryClass()
Category class.

synchronized java.util.List<java.lang.String>

getTags()
Additional non-structured data for the category.

void

serialize(com.yandex.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

Category

Category()

Use constructor with parameters in your code.

This one is for serialization only!


Category

Category(@NonNull java.lang.String name,
         @Nullable java.lang.String categoryClass,
         @NonNull java.util.List<java.lang.String> tags)


Methods

getName

@NonNull
java.lang.String getName()

Category name.


getCategoryClass

@Nullable
java.lang.String getCategoryClass()

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
java.util.List<java.lang.String> getTags()

Additional non-structured data for the category.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()


Предыдущая
Следующая