Skip to content

//deferred-resources/com.backbase.deferredresources/DeferredFormattedPlurals

DeferredFormattedPlurals

[androidJvm] interface DeferredFormattedPlurals

A wrapper for resolving format-able pluralized text on demand.

Types

Name Summary
Constant [androidJvm]
Content
class Constant : ParcelableDeferredFormattedPlurals
More info
A wrapper for constant format-able pluralized text.


Resource [androidJvm]
Content
class Resource(@PluralsRes()resId: Int) : ParcelableDeferredFormattedPlurals
More info
A wrapper for a format-able PluralsRes.


Functions

Name Summary
resolve [androidJvm]
Content
abstract fun resolve(context: Context, quantity: Int, vararg formatArgs: Any = arrayOf(quantity)): String
More info
Resolve the string for the given quantity with the given formatArgs.


Inheritors

Name
ParcelableDeferredFormattedPlurals

Extensions

Name Summary
withFormatArgs [androidJvm]
Content
fun DeferredFormattedPlurals.withFormatArgs(vararg formatArgs: Any): FormattedDeferredPlurals
More info
Convert a DeferredFormattedPlurals to a DeferredPlurals by providing formatArgs to be used when resolved.


[androidJvm]
Content
~~fun~~ ~~<~~T~~>~~ DeferredFormattedPlurals~~.~~~~withFormatArgs~~~~(~~~~vararg~~ ~~formatArgs~~~~:~~ Any~~)~~~~:~~ DeferredPlurals
More info
Convert a DeferredFormattedPlurals to a DeferredPlurals by providing its formatArgs to be used when resolved.


withQuantity [androidJvm]
Content
fun DeferredFormattedPlurals.withQuantity(quantity: Int): QuantifiedDeferredFormattedString
~~fun~~ ~~<~~T~~>~~ DeferredFormattedPlurals~~.~~~~withQuantity~~~~(~~~~quantity~~~~:~~ Int~~)~~~~:~~ DeferredFormattedString
More info
Convert a DeferredFormattedPlurals to a DeferredFormattedString by providing a quantity to be used when resolved.


withQuantityAndFormatArgs [androidJvm]
Content
fun DeferredFormattedPlurals.withQuantityAndFormatArgs(quantity: Int, vararg formatArgs: Any = arrayOf(quantity)): QuantifiedFormattedDeferredText
~~fun~~ ~~<~~T~~>~~ DeferredFormattedPlurals~~.~~~~withQuantityAndFormatArgs~~~~(~~~~quantity~~~~:~~ Int~~,~~ ~~vararg~~ ~~formatArgs~~~~:~~ Any ~~= arrayOf(quantity)~~~~)~~~~:~~ DeferredText
More info
Convert a DeferredFormattedPlurals to a normal DeferredText by providing a quantity and formatArgs to be used when resolved.