Class LocalizedValue

com.yandex.mapkit

java.lang.Object ⇽ LocalizedValue

public class LocalizedValue

A value respecting the device locale.

Constructors

LocalizedValue(double value, @NonNull String text)
LocalizedValue()

Use constructor with parameters in your code.

Methods

String getText()

Localized text.

double getValue()

Value in SI units for distance, speed and duration.

void serialize(Archive archive)

Constructor Detail

LocalizedValue

public LocalizedValue (double value, @NonNull String text)

LocalizedValue

public LocalizedValue ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getText

public String getText ()

Localized text.

For example: "15 ft" or "42 km".

getValue

public double getValue ()

Value in SI units for distance, speed and duration.

serialize

public void serialize (Archive archive)