StringResource

class StringResource(@StringRes val resId: Int, val args: Any) : UiText

A string resource that can be used to represent a string that is known at compile time.

Parameters

resId

The string resource id.

args

The string resource arguments.

Constructors

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

Properties

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

Functions

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

Returns the string value of this UiText.