DefaultLocalizationListener

Default implementation of a LocalizationListener which just calls through to default Android localization methods in android.content.res.Resources class and picks up strings from XML files.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getLocalizedQuantityString(@NonNull context: Context, @PluralsRes res: Int, @NonNull locale: Locale, @Nullable view: View, quantity: Int, formatArgs: Array<Any>): String
Called when a quantity (pluralizable) string needs to be localized and has to return a localized string.
Link copied to clipboard
open fun getLocalizedString(@NonNull context: Context, @StringRes stringId: Int, @NonNull currentLocale: Locale, @Nullable view: View): String
open fun getLocalizedString(@NonNull context: Context, @StringRes stringId: Int, @NonNull currentLocale: Locale, @Nullable view: View, formatArgs: Array<Any>): String
Called when a string needs to be localized and has to return a localized string.