stringResource
Composable Function
Android
@Composable
@ReadOnlyComposable
fun stringResource(@StringRes id: Int): String
Load a string resource.
Parameters
| id | the 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
| id | the resource identifier |
| formatArgs | the format arguments |
Returns
| the string data associated with the resource |
