Router

interface Router

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val currentPath: Path

The current path

Functions

Link copied to clipboard
@Composable
abstract fun getPath(initPath: String): State<String>
Link copied to clipboard
abstract fun navigate(to: String, hide: Boolean = false, replace: Boolean = false)

Navigate to a new path.

Link copied to clipboard
fun Router.navigate(to: String, parameters: Parameters, hide: Boolean = false, replace: Boolean = false)
fun Router.navigate(to: String, parameters: Map<String, String>, hide: Boolean = false, replace: Boolean = false)
fun Router.navigate(to: String, parameters: Map<String, List<String>>, hide: Boolean = false, replace: Boolean = false)
Link copied to clipboard
@Composable
fun Router.route(initRoute: String, routing: @Composable RouteBuilder.() -> Unit)