ViewComposer

class ViewComposer : Composer<Any>
kotlin.Any
   ↳ androidx.compose.Composer<kotlin.Any>
   ↳ androidx.compose.ViewComposer

Summary

Public constructors

<init>(root: Any, context: Context, recomposer: Recomposer, adapters: ViewAdapters? = ViewAdapters())

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.

V
Composer<N>.remember(block: () -> V)

Remember the value produced by block.

V
Composer<N>.remember(p1: P1, block: () -> V)

Remember the value returned by block if p1 is equal to the previous composition, otherwise produce and remember a new value by calling block.

V
Composer<N>.remember(p1: P1, p2: P2, block: () -> V)

Remember the value returned by block if p1 and p2 are equal to the previous composition, otherwise produce and remember a new value by calling block.

V
Composer<N>.remember(p1: P1, p2: P2, p3: P3, block: () -> V)

Remember the value returned by block if p1, p2 and p3 are equal to the previous composition, otherwise produce and remember a new value by calling block.

V
Composer<N>.remember(p1: P1, p2: P2, p3: P3, p4: P4, block: () -> V)

Remember the value returned by block if p1, p2, p3, p4 are equal to the previous composition, otherwise produce and remember a new value by calling block.

V
Composer<N>.remember(vararg args: Any?, block: () -> V)

Remember the value returned by block if all values of args are equal to the previous composition, otherwise produce and remember a new value by calling block.

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

Properties

ViewAdapters?

Context

Any

Inherited properties

Public constructors

<init>

ViewComposer(
    root: Any,
    context: Context,
    recomposer: Recomposer,
    adapters: ViewAdapters? = ViewAdapters())

Properties

adapters

val adapters: ViewAdapters?

context

val context: Context

root

val root: Any