RoutingModel

class RoutingModel(val routes: List<Route>? = null, defaultContent: @Composable IComponent.() -> Unit? = null, val defaultMeta: Meta?, notFoundView: @Composable IComponent.() -> Unit? = null, notFoundAction: suspend () -> Unit? = null, val notFoundMeta: Meta?)(source)

The routing tree model.

Constructors

Link copied to clipboard
constructor(routes: List<Route>? = null, defaultContent: @Composable IComponent.() -> Unit? = null, defaultMeta: Meta?, notFoundView: @Composable IComponent.() -> Unit? = null, notFoundAction: suspend () -> Unit? = null, notFoundMeta: Meta?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
@Composable
fun apply(component: IComponent, routeBuilder: RouteBuilder, routingContext: RoutingContextImpl, defaultMeta: Meta?)

Applies the routing model to the given component, route builder, and routing context.

Link copied to clipboard

Returns a map of all static paths in the routing model with their associated metadata.

Link copied to clipboard
open override fun toString(): String