Class I18nManagerFactory

com.yandex.runtime.i18n

public class I18nManagerFactory

Methods

native I18nManager getI18nManagerInstance()

Gets the internationalization manager interface.

native void getLocale(@NonNull LocaleListener localeListener)

Returns the locale currently used by the runtime.

native void resetLocale(@NonNull LocaleResetListener localeResetListener)

Resets locale settings to system defaults.

native void setLocale(@NonNull String language, @NonNull String country, @NonNull LocaleUpdateListener localeUpdateListener)

Sets the runtime locale.

native void setLocale(@NonNull String language, @NonNull LocaleUpdateListener localeUpdateListener)

Sets a custom library language.

Method Detail

getI18nManagerInstance

public static native I18nManager getI18nManagerInstance ()

Gets the internationalization manager interface.

getLocale

public static native void getLocale (@NonNull LocaleListener localeListener)

Returns the locale currently used by the runtime.

resetLocale

public static native void resetLocale (@NonNull LocaleResetListener localeResetListener)

Resets locale settings to system defaults.

setLocale

public static native void setLocale (@NonNull String language, @NonNull String country, @NonNull LocaleUpdateListener localeUpdateListener)

Sets the runtime locale.

The user needs to restart the application for the changes to take effect.

setLocale

public static native void setLocale (@NonNull String language, @NonNull LocaleUpdateListener localeUpdateListener)

Sets a custom library language.

Country settings are determined by system preferences. The user needs to restart the application for the changes to take effect.