StringResource

class StringResource(@StringRes val resourceId: Int, val args: Any) : GetString

Represents a string that can be retrieved from Android string resources. This is useful for providing localized strings within the application.

Parameters

resourceId

The ID of the string resource (e.g., R.string.my_string).

args

The optional format arguments to be used for substitution in the string resource.

Constructors

Link copied to clipboard
constructor(@StringRes resourceId: Int, vararg args: Any)

Properties

Link copied to clipboard
val args: Array<out Any>
Link copied to clipboard

Functions

Link copied to clipboard
open fun asString(context: Context): String