stringResource

Composable Function

Android
@Composable
@ReadOnlyComposable
fun stringResource(@StringRes id: Int): String

Load a string resource.

Parameters

idthe resource identifier

Returns

the string data associated with the resource
Android
@Composable
@ReadOnlyComposable
fun stringResource(@StringRes id: Int, vararg formatArgs: Any): String

Load a string resource with formatting.

Parameters

idthe resource identifier
formatArgsthe format arguments

Returns

the string data associated with the resource