The Developer Preview for Android 11 is now available; test it out and share your feedback.

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
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: () -> 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.

Any?

Get the next value of the slot table.

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

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.

Properties

VNode

Inherited properties

Public constructors

<init>

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

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 <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