Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.search

Class SubtitleItem

java.lang.Object
    ↳ com.yandex.mapkit.search.SubtitleItem

class SubtitleItem implements Serializable

Separate subtitle of a certain type.

Summary

Constructors

Signature and Description

SubtitleItem()
Use constructor with parameters in your code.

SubtitleItem(@NonNull java.lang.String type,
             @Nullable java.lang.String text,
             @NonNull java.util.List<KeyValuePair> properties)

Methods

Type and modifiers

Method and Description

synchronized java.lang.String

getType()
Subtitle type.

synchronized java.lang.String

getText()
Short summary text.

synchronized java.util.List<KeyValuePair>

getProperties()
Detailed subtitle info.

void

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

static java.lang.String

getNativeName()

Constuctors

SubtitleItem

SubtitleItem()

Use constructor with parameters in your code.

This one is for serialization only!


SubtitleItem

SubtitleItem(@NonNull java.lang.String type,
             @Nullable java.lang.String text,
             @NonNull java.util.List<KeyValuePair> properties)


Methods

getType

@NonNull
java.lang.String getType()

Subtitle type.

For example, "exchange".


getText

@Nullable
java.lang.String getText()

Short summary text.

For example, "USD 57.69/57.3".

Optional field, can be null.


getProperties

@NonNull
java.util.List<KeyValuePair> getProperties()

Detailed subtitle info.

For example, [ {"key": "currency", "value": "USD"}, {"key": "buy", "value": "57.3"}, {"key": "sell", "value": "57.69"} ].


serialize

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


getNativeName

java.lang.String getNativeName()


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