androidx.compose.ui.layout
SubcomposeLayoutState
Class · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
State used by SubcomposeLayout.
class SubcomposeLayoutState(
slotReusePolicy: SubcomposeSlotReusePolicy,
)
How to get one
Create it
SubcomposeLayoutState(slotReusePolicy)constructor
Used by
Parameters that take a SubcomposeLayoutState.
Functions
precompose
fun precompose(slotId: Any?, content: @Composable () -> Unit): PrecomposedSlotHandle
Composes the content for the given slotId. This makes the next scope.subcompose(slotId) call during the measure pass faster as the content is already composed.
createPausedPrecompositionSince 1.9
fun createPausedPrecomposition(slotId: Any?, content: @Composable () -> Unit): PausedPrecomposition
Creates PausedPrecomposition, which allows to perform the composition in an incremental manner.
Nested types
PausedPrecompositionPrecomposedSlotHandle
Library docs
State used by SubcomposeLayout.
slotReusePolicy the policy defining what slots should be retained to be reused later.