getString

fun getString(context: Context, @StringRes resId: Int): String

Gets a localized string resource.

Return

The localized string

Parameters

context

The context to get the string resource

resId

The resource ID of the string