Google is committed to advancing racial equity for Black communities. See how.

ComposableLambda

@Stable class ComposableLambda<P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R> : (Composer<*>, Int) -> R, (P1, Composer<*>, Int) -> R, (P1, P2, Composer<*>, Int) -> R, (P1, P2, P3, Composer<*>, Int) -> R, (P1, P2, P3, P4, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, Composer<*>, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, Composer<*>, Int, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, Composer<*>, Int, Int) -> R, (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, Composer<*>, Int, Int) -> R
kotlin.Any
   ↳ androidx.compose.runtime.internal.ComposableLambda

A Restart is created to hold composable lambdas to track when they are invoked allowing the invocations to be invalidated when a new composable lambda is created during composition.

This allows much of the call-graph to be skipped when a composable function is passed through multiple levels of composable functions.

Summary

Public constructors
<init>(key: Int, tracked: Boolean, sourceInformation: String?)

A Restart is created to hold composable lambdas to track when they are invoked allowing the invocations to be invalidated when a new composable lambda is created during composition.

Public methods
operator R
invoke(c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, c: Composer<*>, changed: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, c: Composer<*>, changed: Int, changed1: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, c: Composer<*>, changed: Int, changed1: Int)

operator R
invoke(p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, p10: P10, p11: P11, p12: P12, p13: P13, p14: P14, p15: P15, p16: P16, p17: P17, p18: P18, c: Composer<*>, changed: Int, changed1: Int)

Unit
update(block: Any)

Properties
Int

Public constructors

<init>

ComposableLambda(
    key: Int,
    tracked: Boolean,
    sourceInformation: String?)

A Restart is created to hold composable lambdas to track when they are invoked allowing the invocations to be invalidated when a new composable lambda is created during composition.

This allows much of the call-graph to be skipped when a composable function is passed through multiple levels of composable functions.

Public methods

invoke

operator fun invoke(
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    p13: P13,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    p13: P13,
    p14: P14,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    p13: P13,
    p14: P14,
    p15: P15,
    c: Composer<*>,
    changed: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    p13: P13,
    p14: P14,
    p15: P15,
    p16: P16,
    c: Composer<*>,
    changed: Int,
    changed1: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    p13: P13,
    p14: P14,
    p15: P15,
    p16: P16,
    p17: P17,
    c: Composer<*>,
    changed: Int,
    changed1: Int
): R

invoke

operator fun invoke(
    p1: P1,
    p2: P2,
    p3: P3,
    p4: P4,
    p5: P5,
    p6: P6,
    p7: P7,
    p8: P8,
    p9: P9,
    p10: P10,
    p11: P11,
    p12: P12,
    p13: P13,
    p14: P14,
    p15: P15,
    p16: P16,
    p17: P17,
    p18: P18,
    c: Composer<*>,
    changed: Int,
    changed1: Int
): R

update

fun update(block: Any): Unit

Properties

key

val key: Int