PluralResource

data class PluralResource(val resourceId: Int, val count: Int, val arguments: List<Any> = emptyList()) : UiText(source)

A plural resource whose count selects the quantity. Include count in arguments as well if the text displays it.

Constructors

Link copied to clipboard
constructor(resourceId: Int, count: Int, arguments: List<Any> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
val count: Int
Link copied to clipboard

Functions

Link copied to clipboard

Resolves text against the current composition configuration, including locale changes.

fun asString(context: Context): String

Resolves text using the supplied context and its current resource configuration.