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 setLocale(@Nullable String locale)

Sets the application's locale.

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.

setLocale

public static native void setLocale (@Nullable String locale)

Sets the application's locale.

Useful only if MapKit is not used by the application. Otherwise, use MapKitFactory.setLocale() or [YMKMapKit setLocale]. Also useless if someone else has already set the locale (produses warning and does nothing). Can be set to none, in this case system locale will be used.Remark:
Parameters:
locale

has optional type, it may be uninitialized.