Join us for ⁠#Android11: The Beta Launch Show on June 3!

UiComposer

class UiComposer : Composer<Any>
kotlin.Any
   ↳ androidx.compose.Composer<kotlin.Any>
   ↳ androidx.ui.node.UiComposer

Summary

Public constructors

<init>(context: Context, root: Any, slotTable: SlotTable, recomposer: Recomposer)

Public methods

Unit
emit(key: Any, ctor: (context: Context) -> T, update: UiUpdater<T>.() -> Unit)

Unit
emit(key: Any, ctor: (context: Context) -> T, update: UiUpdater<T>.() -> Unit, children: () -> Unit)

Unit
emit(key: Any, ctor: () -> T, update: UiUpdater<T>.() -> Unit)

Unit
emit(key: Any, ctor: () -> T, update: UiUpdater<T>.() -> 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.

From androidx.ui.core
Modifier

Materialize any instance-specific composed modifiers for applying to a raw tree node.

Properties

Context

Any

Inherited properties

Public constructors

<init>

UiComposer(
    context: Context,
    root: Any,
    slotTable: SlotTable,
    recomposer: Recomposer)

Public methods

emit

inline fun <T : View> emit(
    key: Any,
    ctor: (context: Context) -> T,
    update: UiUpdater<T>.() -> Unit
): Unit

emit

inline fun <T : ViewGroup> emit(
    key: Any,
    ctor: (context: Context) -> T,
    update: UiUpdater<T>.() -> Unit,
    children: () -> Unit
): Unit

emit

inline fun <T : ComponentNode> emit(
    key: Any,
    ctor: () -> T,
    update: UiUpdater<T>.() -> Unit
): Unit

emit

inline fun <T : ComponentNode> emit(
    key: Any,
    ctor: () -> T,
    update: UiUpdater<T>.() -> Unit,
    children: () -> Unit
): Unit

Properties

context

val context: Context

root

val root: Any