Важно

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

static

FeatureEnumValue

Value for enumerated features.

static

BooleanValue

static

VariantValue

A variant combining possible feature values.

Summary

Constructors

Signature and Description

Feature()
Use constructor with parameters in your code.

Feature(@NonNull java.lang.String id,
        @NonNull VariantValue value,
        @Nullable java.lang.String name,
        @Nullable java.lang.String aref,
        @Nullable Image iconLight,
        @Nullable Image iconDark)

Methods

Type and modifiers

Method and Description

synchronized java.lang.String

getId()
Machine readable feature identifier.

synchronized VariantValue

getValue()
Feature value (depends on feature type).

synchronized java.lang.String

getName()
Human readable localized representation.

synchronized java.lang.String

getAref()
Reference to information source providing given feature (see mapkit.Attribution)

Optional field, can be null.

synchronized Image

getIconLight()
Optional field, can be null.

synchronized Image

getIconDark()
Optional field, can be null.

void

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

static java.lang.String

getNativeName()

Constuctors

Feature

Feature()

Use constructor with parameters in your code.

This one is for serialization only!


Feature

Feature(@NonNull java.lang.String id,
        @NonNull VariantValue value,
        @Nullable java.lang.String name,
        @Nullable java.lang.String aref,
        @Nullable Image iconLight,
        @Nullable Image iconDark)


Methods

getId

@NonNull
java.lang.String getId()

Machine readable feature identifier.


getValue

@NonNull
VariantValue getValue()

Feature value (depends on feature type).


getName

@Nullable
java.lang.String getName()

Human readable localized representation.

Optional field, can be null.


getAref

@Nullable
java.lang.String getAref()

Reference to information source providing given feature (see mapkit.Attribution)

Optional field, can be null.


getIconLight

@Nullable
Image getIconLight()

Optional field, can be null.


getIconDark

@Nullable
Image getIconDark()

Optional field, can be null.


serialize

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


getNativeName

java.lang.String getNativeName()


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