window

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.

Parameters

route

used to identify the window when navigating, in order to present it's content

windowFactory

lambda that takes content argument and allows to wrap it in custom Window implementation.

content

view with Composable content of the window

Throws

when attempting to add new window for already registered route


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.

See also


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.

See also


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.

See also