Navigator

fun Navigator(backStack: BackStack<out BackStack.Record>, onRootPop: (result: PopResult?) -> Unit): Navigator(source)

Creates a new Navigator.

Parameters

backStack

The backing BackStack to navigate.

onRootPop

Invoked when the backstack is at root (size 1) and the user presses the back button.

See also