rememberRouter
inline fun <C : @Serializable Any> rememberRouter(key: Any = C::class, handleBackButton: Boolean = true, noinline initialStack: () -> List<C>): Router<C>
Creates a router that retains a stack of C configuration
Parameters
key
initialStack
initial stack of configurations
handleBackButton
should the router handle back button
fun <C : @Serializable Any> rememberRouter(type: KClass<C>, key: Any = type.key, handleBackButton: Boolean = true, serializer: KSerializer<C>? = type.serializerOrNull(), initialStack: () -> List<C>): Router<C>
Deprecated
Use rememberRouter with reified type parameter
Creates a router that retains a stack of C configuration
Parameters
type
configuration class type
key
initialStack
initial stack of configurations
handleBackButton
should the router handle back button