Package world.mappable.runtime.i18n

Class I18nPrefs

java.lang.Object
    ↳ world.mappable.runtime.i18n.I18nPrefs

class I18nPrefs implements Serializable

Localization preferences.

Summary

Constructors

Signature and Description

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

I18nPrefs()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

SystemOfMeasurement

getSom()
System of measurement (metric or imperial).

TimeFormat

getTimeFormat()
Time format (12- or 24-hour).

void

serialize(world.mappable.runtime.bindings.Archive archive)

Constuctors

I18nPrefs

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


I18nPrefs

I18nPrefs()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getSom

@NonNull
SystemOfMeasurement getSom()

System of measurement (metric or imperial).


getTimeFormat

@NonNull
TimeFormat getTimeFormat()

Time format (12- or 24-hour).


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)