Class I18nPrefs

com.yandex.runtime.i18n

java.lang.Object ⇽ I18nPrefs

public class I18nPrefs implements Serializable

All Implemented Interfaces:
Serializable

Localization preferences.

Constructors

I18nPrefs(@NonNull SystemOfMeasurement som, @NonNull TimeFormat timeFormat)
I18nPrefs()

Use constructor with parameters in your code.

Methods

SystemOfMeasurement getSom()

System of measurement (metric or imperial).

TimeFormat getTimeFormat()

Time format (12- or 24-hour).

void serialize( Archive archive)

Constructor Detail

I18nPrefs

public I18nPrefs (@NonNull SystemOfMeasurement som, @NonNull TimeFormat timeFormat)

I18nPrefs

public I18nPrefs ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getSom

public SystemOfMeasurement getSom ()

System of measurement (metric or imperial).

getTimeFormat

public TimeFormat getTimeFormat ()

Time format (12- or 24-hour).

serialize

public void serialize (Archive archive)