get Localized Quantity String
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. Default implementation calls through to getQuantityString.
Return
Localized string to be displayed.
Parameters
context
Context.
string Id
Resource id of the string requested. See strings.xml
file of PSPDFKit for all possible strings.
current Locale
Locale for which the string is requested for.
view
View that requested the string if applicable. May be null
.
quantity
Quantity to be used to choose a proper pluralizable string.
format Args
Formatting arguments that should be applied to the localized string.