PathSegmentTailcardRouteSelector

data class PathSegmentTailcardRouteSelector(name: String, prefix: String) : RouteSelector

Evaluates a route against any number of trailing path segments, and captures their values.

Parameters

name

is the name of the parameter to capture values to

Constructors

Link copied to clipboard
fun PathSegmentTailcardRouteSelector(name: String = "", prefix: String = "", hasTrailingSlash: Boolean)
Link copied to clipboard
fun PathSegmentTailcardRouteSelector(name: String = "", prefix: String = "")

Functions

Link copied to clipboard
open override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex.

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

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val prefix: String

before the tailcard (static text)

Link copied to clipboard
val quality: Double