TextSpanComposer

class TextSpanComposer : Composer<TextSpan>
kotlin.Any
   ↳ androidx.compose.Composer<androidx.ui.text.TextSpan>
   ↳ androidx.ui.core.TextSpanComposer

The composer of TextSpan.

Summary

Public methods

Unit
call(key: Any, invalid: ViewValidator.() -> Boolean, block: () -> Unit)

Unit
call(key: Any, ctor: () -> T, invalid: ViewValidator.(f: T) -> Boolean, block: (f: T) -> Unit)

Unit
emit(key: Any, ctor: () -> TextSpan, update: TextSpanUpdater<TextSpan>.() -> Unit)

Unit
emit(key: Any, ctor: () -> TextSpan, update: TextSpanUpdater<TextSpan>.() -> Unit, children: () -> Unit)

Inherited functions

Inherited extension functions

From androidx.compose
T
Composer<N>.cache(valid: Boolean = true, block: () -> T)

Cache a value in the composition.

Any?

Get the next value of the slot table.

actual T
Composer<*>.runWithCurrent(block: () -> T)

operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Inherited properties

Public methods

call

inline fun call(
    key: Any,
    invalid: ViewValidator.() -> Boolean,
    block: () -> Unit
): Unit

call

inline fun <T> call(
    key: Any,
    ctor: () -> T,
    invalid: ViewValidator.(f: T) -> Boolean,
    block: (f: T) -> Unit
): Unit

emit

inline fun emit(
    key: Any,
    ctor: () -> TextSpan,
    update: TextSpanUpdater<TextSpan>.() -> Unit
): Unit

emit

inline fun emit(
    key: Any,
    ctor: () -> TextSpan,
    update: TextSpanUpdater<TextSpan>.() -> Unit,
    children: () -> Unit
): Unit