Class I18nManagerFactory
com.yandex.runtime.i18n
public class I18nManagerFactory
Methods
native I18nManager | getI18nManagerInstance() | |
native void | getLocale( LocaleListener localeListener) | Returns the locale currently used by the runtime. |
native void | resetLocale( LocaleResetListener localeResetListener) | Resets locale settings to system defaults. |
native void | setLocale(String language, String country, LocaleUpdateListener localeUpdateListener) | Sets the runtime locale. |
native void | setLocale(String language, LocaleUpdateListener localeUpdateListener) | Sets a custom library language. |
native I18nManager | getI18nManagerInstance() | |
native void | getLocale( LocaleListener localeListener) | Returns the locale currently used by the runtime. |
native void | resetLocale( LocaleResetListener localeResetListener) | Resets locale settings to system defaults. |
native void | setLocale(String language, String country, LocaleUpdateListener localeUpdateListener) | Sets the runtime locale. |
native void | setLocale(String language, LocaleUpdateListener localeUpdateListener) | Sets a custom library language. |
Method Detail
getI18nManagerInstance
public static native I18nManager getI18nManagerInstance ()
getLocale
public static native void getLocale (LocaleListener localeListener)
Returns the locale currently used by the runtime.
resetLocale
public static native void resetLocale (LocaleResetListener localeResetListener)
Resets locale settings to system defaults.
setLocale
public static native void setLocale (String language, String country, 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 (String language, 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.