ResolvableString

sealed interface ResolvableString : Serializable

String which can be resolved at use site.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
abstract class Resource(args: Serializable) : ResolvableString

ResolvableString backed by Android resource string with optional arguments. Arguments can be ResolvableStrings as well.

Properties

Link copied to clipboard
open val isEmpty: Boolean

Returns whether this string is empty.

Link copied to clipboard
open val isRaw: Boolean

Returns whether this string represents a hardcoded string.

Link copied to clipboard

Returns whether this string represents a resource string.

Functions

Link copied to clipboard
abstract fun resolve(context: Context): String

Resolves string value for a given context.