Package 

Object StateUtils

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static StateUtils INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final <T extends Any> State<T> rememberStateWithLifecycle(StateFlow<T> flow, Lifecycle lifecycle, Lifecycle.State minActiveState)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • rememberStateWithLifecycle

        @Deprecated(message = Replace with collectAsStateWithLifecycle, replaceWith = @ReplaceWith(imports = {androidx.lifecycle.compose.collectAsStateWithLifecycle}, expression = flow.collectAsStateWithLifecycle()))@Composable() final <T extends Any> State<T> rememberStateWithLifecycle(StateFlow<T> flow, Lifecycle lifecycle, Lifecycle.State minActiveState)