Navigator

Class that can trigger a given NavigationAction

Parameters

Action

the type of NavigationAction this navigator should respond to.

Inheritors

Class that can trigger a given NavigationAction

Parameters

Action

the type of NavigationAction this navigator should respond to.

actual interface Navigator<Action : NavigationAction<*>>

Class that can trigger a given NavigationAction

Parameters

Action

the type of NavigationAction this navigator should respond to.

Inheritors

Class that can trigger a given NavigationAction

Parameters

Action

the type of NavigationAction this navigator should respond to.

Class that can trigger a given NavigationAction

Parameters

Action

the type of NavigationAction this navigator should respond to.

Functions

Link copied to clipboard
actual abstract fun navigate(action: Action)

Triggers a given NavigationAction

expect abstract fun navigate(action: Action)

Triggers a given NavigationAction

actual abstract fun navigate(action: Action)
actual abstract fun navigate(action: Action)
Link copied to clipboard
fun <Action : NavigationAction<*>> Navigator<Action>.navigateOrElse(action: Action, onFailure: () -> Unit)

Triggers a given NavigationAction or executes a closure if the navigation failed to complete.

Link copied to clipboard

Triggers a given NavigationAction and returns true if it succeeded.