Custom

abstract class Custom : UiText(source)

A string from a source the library does not know about, resolved by the subclass during composition.

This is the bridge for strings that are neither literals nor Compose Multiplatform resources: Android @StringRes ids use it, and a host can extend it to read from anywhere else (a remote-config catalog, an iOS Localizable.strings lookup). Implementations should be immutable and implement equals, so an unchanged text does not recompose its component.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun resolve(): String

Resolves the text against the current composition.

Link copied to clipboard

Resolves this UiText against the current composition's resources.