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,
               @NonNull java.lang.String text)

LocalizedValue()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

double

getValue()
Value in SI units for distance, speed and duration.

java.lang.String

getText()
Localized text.

void

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

Constuctors

LocalizedValue

LocalizedValue(double value,
               @NonNull java.lang.String text)


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
java.lang.String getText()

Localized text.

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


serialize

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


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