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

Remeasurement

interface Remeasurement
androidx.compose.ui.Remeasurement

This object is associated with a layout node and allows to execute some extra measure/layout actions which are needed for some complex layouts. In most cases you don't need it as measuring and layout should be correctly working automatically for most cases.

Summary

Public methods
abstract Unit

Performs the node remeasuring synchronously even if the node was not marked as needs remeasure before.

Public methods

forceRemeasure

abstract fun forceRemeasure(): Unit

Performs the node remeasuring synchronously even if the node was not marked as needs remeasure before. Useful for cases like when during scrolling you need to re-execute the measure block to consume the scroll offset and remeasure your children in a blocking way.