stringResource

fun stringResource(name: String, packageName: String): String

A reflective way of loading a string in a composable function.

Return

The string resource.

Parameters

name

The name of the resource.

packageName

The package name of the resource.

Throws

If the resource is not found.