UiText

sealed class UiText(source)

Coordinates UiText behavior in the SDAI core UI layer.

Author

Dmitriy Moroz

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
object Companion

Provides the companion object singleton used by the SDAI core UI layer.

Link copied to clipboard
class Concat(val texts: Any, val separator: String = "") : UiText

Coordinates Concat behavior in the SDAI core UI layer.

Link copied to clipboard
class Resource(val resId: Int, val args: Any) : UiText

Coordinates Resource behavior in the SDAI core UI layer.

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

Carries Static data through the SDAI core UI layer.

Functions

Link copied to clipboard
fun UiText.asString(context: Context): String
fun UiText.asString(resources: Resources): String

Executes the asString step in the SDAI core UI layer.

Renders the asString UI for the SDAI presentation layer.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Executes the equals step in the SDAI core UI layer.

Link copied to clipboard
open override fun hashCode(): Int

Executes the hashCode step in the SDAI core UI layer.