Android 12 Developer Preview is here! Try it out, and give us your feedback!

SubcomposeMeasureScope

interface SubcomposeMeasureScope : MeasureScope
androidx.compose.ui.layout.SubcomposeMeasureScope

The receiver scope of a SubcomposeLayout's measure lambda which adds ability to dynamically subcompose a content during the measuring on top of the features provided by MeasureScope.

Summary

Public methods
abstract List<Measurable>
subcompose(slotId: Any?, content: () -> Unit)

Performs subcomposition of the provided content with given slotId.

Inherited functions
Inherited properties

Public methods

subcompose

abstract fun subcompose(
    slotId: Any?,
    content: () -> Unit
): List<Measurable>

Performs subcomposition of the provided content with given slotId.