Skip to content

Glossary: Android with Jetpack Compose

collectAsStateWithLifecycle

Collects a StateFlow into Compose state so the screen recomposes on each new value, pausing while the app is in the background.

Where the book teaches it

Related terms

StateFlowrecompositionViewModel