RoutingBuilderImpl

An implementation of the RoutingBuilder interface for entry routes. Provides methods to define default content, metadata, views, and actions.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var action: suspend () -> Unit?
Link copied to clipboard
var defaultContent: @Composable IComponent.() -> Unit?
Link copied to clipboard
Link copied to clipboard
var meta: Meta?
Link copied to clipboard
var view: @Composable IComponent.() -> Unit?

Functions

Link copied to clipboard
open override fun action(action: suspend () -> Unit)

Adds an action for unmatched routes.

Link copied to clipboard
fun add(route: Route)
Link copied to clipboard
open override fun defaultContent(defaultContent: @Composable IComponent.() -> Unit)

Adds a default content view for the entry route.

Link copied to clipboard
open override fun defaultMeta(defaultMeta: Meta.() -> Unit)

Adds default metadata for the entry route.

Link copied to clipboard

Returns the routing model constructed by this builder.

Link copied to clipboard
open fun int(routingBuilder: IntRoutingBuilder.(IntRoutingContext) -> Unit)

Adds a route for a numeric path segment.

Link copied to clipboard
open fun meta(meta: Meta.() -> Unit)

Adds metadata for the given route.

Link copied to clipboard
open fun route(vararg path: String, routingBuilder: PlainRoutingBuilder.(RoutingContext) -> Unit)

Adds a route for the specified path.

Link copied to clipboard
open fun routes(): List<Route>?
Link copied to clipboard
open fun string(routingBuilder: StringRoutingBuilder.(StringRoutingContext) -> Unit)

Adds a route for a string path segment.

Link copied to clipboard
open override fun view(view: @Composable IComponent.() -> Unit)

Adds a view for unmatched routes.