UiText

sealed class UiText

A sealed class that represents a string that can be either a string resource or a dynamic string.

Inheritors

Types

Link copied to clipboard
data class DynamicString(val value: String) : UiText

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

Link copied to clipboard
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.

Functions

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

Returns the string value of this UiText.