pluralStringResource

Composable Function

Android
@Composable
@ReadOnlyComposable
fun pluralStringResource(@PluralsRes id: Int, count: Int): String

Load a plurals resource.

Parameters

idthe resource identifier
countthe count

Returns

the pluralized string data associated with the resource
Android
@Composable
@ReadOnlyComposable
fun pluralStringResource(@PluralsRes id: Int, count: Int, vararg formatArgs: Any): String

Load a plurals resource with provided format arguments.

Parameters

idthe resource identifier
countthe count
formatArgsarguments used in the format string

Returns

the pluralized string data associated with the resource