WindowsController

class WindowsController(startRoute: String)

Manages navigation between the windows declared when building WindowsNavigation.

Available via LocalWindowController.

Constructors

Link copied to clipboard
constructor(startRoute: String)

Properties

Link copied to clipboard

Read only list of current window routes along with their navigation arguments, the list is based on the routesList.

Functions

Link copied to clipboard
fun close(route: String): Result<Unit>

Closes the window for given route and removes it from the routes list. When there was an error, error opened windows do not change.

Link copied to clipboard
fun open(route: String, args: Any? = null): Result<Unit>

Opens new window for the route and adds it to the routes stack. Content of the windows is based on what was declared in WindowsNavigation.