Package com.yandex.mapkit
Class LocalizedValue
java.lang.Object
↳ com.yandex.mapkit.LocalizedValue
class LocalizedValue implements Serializable
A value respecting the device locale.
Summary
Constructors
Signature and Description |
LocalizedValue(double value, |
LocalizedValue() |
Methods
Type and modifiers |
Method and Description |
double |
getValue() |
java.lang.String |
getText() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
Constuctors
LocalizedValue
LocalizedValue(double value, |
LocalizedValue
LocalizedValue() |
Use constructor with parameters in your code.
This one is for bindings only!
Methods
getValue
double getValue() |
Value in SI units for distance, speed and duration.
getText
@NonNull |
Localized text.
For example: "15 ft" or "42 km".
serialize
@Override |