Localization Listener
interface 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
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.