LocalizationListener

Listener that allows SDK UI strings to be localized programmatically. Localization callbacks will be called on the main thread every time a string is needed so the callbacks MUST be fast and responsive.

Inheritors

Functions

Link copied to clipboard
abstract fun getLocalizedQuantityString(    @NonNull context: Context,     @PluralsRes stringId: Int,     @NonNull currentLocale: 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
abstract fun getLocalizedString(@NonNull context: Context, @StringRes stringId: Int, @NonNull currentLocale: Locale, @Nullable view: View): String
abstract 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.