WindowsMapBuilder

Builds windows navigation map.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): Map<String, @Composable (args: Any?) -> Unit>

Build immutable windowsMap.

Link copied to clipboard
fun window(route: String, windowFactory: @Composable (content: @Composable FrameWindowScope.() -> Unit) -> Unit, content: @Composable FrameWindowScope.() -> Unit)

Alternative implementation of window that does not pass any arguments.

fun <Args> window(route: String, windowFactory: @Composable (content: @Composable FrameWindowScope.() -> Unit) -> Unit, content: @Composable FrameWindowScope.(args: Args?) -> Unit)

Declare window content for route and add it to underlying windowsMap. The windowsMap will be used to navigate between the windows.

fun window(route: String, title: String = route, content: @Composable FrameWindowScope.() -> Unit)

Alternative implementation of window that does not pass any arguments and that provides Window with basic setup. Window title is set to title parameter and onCloseRequest is set to close this window.

fun <Args> window(route: String, title: String = route, content: @Composable FrameWindowScope.(args: Args?) -> Unit)

Alternative implementation of window that provides Window with basic setup. Window title is set to title parameter and onCloseRequest is set to close this window.