Class SubtitleItem

com.yandex.mapkit.search

java.lang.Object ⇽ SubtitleItem

public class SubtitleItem

Separate subtitle of a certain type.

Constructors

SubtitleItem()

Use constructor with parameters in your code.

SubtitleItem(@NonNull String type, @Nullable String text, @NonNull List< KeyValuePair > properties)

Methods

String getNativeName()
synchronized List< KeyValuePair > getProperties()

Detailed subtitle info.

synchronized String getText()

Short summary text.

synchronized String getType()

Subtitle type.

void serialize(Archive archive)

Constructor Detail

SubtitleItem

public SubtitleItem ()

Use constructor with parameters in your code.

This one is for serialization only!

SubtitleItem

public SubtitleItem (@NonNull String type, @Nullable String text, @NonNull List< KeyValuePair > properties)

Method Detail

getNativeName

public static String getNativeName ()

getProperties

public synchronized List< KeyValuePair > getProperties ()

Detailed subtitle info.

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

getText

public synchronized String getText ()

Short summary text.

For example, "USD 57.69/57.3".Optional field, can be null.

getType

public synchronized String getType ()

Subtitle type.

For example, "exchange".

serialize

public void serialize (Archive archive)