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

VectorComposer

class VectorComposer : Composer<VNode>
kotlin.Any
   ↳ androidx.compose.Composer<androidx.ui.graphics.vector.VNode>
   ↳ androidx.ui.graphics.vector.VectorComposer

Summary

Public constructors

<init>(root: VNode, slotTable: SlotTable, recomposer: Recomposer)

Public methods

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

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

VNode

Inherited properties

Public constructors

<init>

VectorComposer(
    root: VNode,
    slotTable: SlotTable,
    recomposer: Recomposer)

Public methods

emit

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

emit

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

Properties

root

val root: VNode