stringResource

Functions summary

String

Load a string resource.

String
@Composable
stringResource(id: @StringRes Int, vararg formatArgs: Any)

Load a string resource with formatting.

Functions

stringResource

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

Load a string resource.

Parameters
id: @StringRes Int

the resource identifier

Returns
String

the string data associated with the resource

stringResource

@Composable
fun stringResource(id: @StringRes Int, vararg formatArgs: Any): String

Load a string resource with formatting.

Parameters
id: @StringRes Int

the resource identifier

vararg formatArgs: Any

the format arguments

Returns
String

the string data associated with the resource