Function

observeReads

Use this function to observe snapshot reads for any target within the specified block.

observeReads

Source set: Common
public fun <T> T.observeReads(block: () -> Unit) where T : Modifier.Node, T : ObserverModifierNode

Use this function to observe snapshot reads for any target within the specified block. ObserverModifierNode.onObservedReadsChanged is called when any of the observed values within the snapshot change.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: