Skip to content

//deferred-resources/com.backbase.deferredresources.text/QuantifiedFormattedDeferredText

QuantifiedFormattedDeferredText

[androidJvm] class QuantifiedFormattedDeferredText : ParcelableDeferredText

A DeferredText implementation that wraps a DeferredFormattedPlurals along with its quantity and formatArgs. Designed for use cases where the quantity and format args are determined at the declaring site rather than the resolving site.

If the quantity and format args are to be determined at the resolving site, stick with DeferredFormattedPlurals.

This class implements android.os.Parcelable. It will throw at runtime if wrapped or any of formatArgs cannot be marshalled.

Constructors

QuantifiedFormattedDeferredText [androidJvm] fun QuantifiedFormattedDeferredText(wrapped: DeferredFormattedPlurals, quantity: Int, vararg formatArgs: Any = arrayOf(quantity))Initialize with the given wrapped, quantity, and formatArgs.

Functions

Name Summary
describeContents [androidJvm]
Content
abstract fun describeContents(): Int


resolve [androidJvm]
Content
open override fun resolve(context: Context): CharSequence
More info
Resolve wrapped with quantity and formatArgs using the given context.


writeToParcel [androidJvm]
Content
abstract fun writeToParcel(p0: Parcel, p1: Int)