ShellGraph

The complete description of an app: its tabs, drawer, pages and bottom accessories.

Features add their pages with registration functions on ShellGraphBuilder; the host builds the graph once and hands it to the shell.

Properties

Link copied to clipboard

The app's mark, shown beside appTitle where the navigation names the app.

Link copied to clipboard
Link copied to clipboard
val banner: @Composable () -> Unit?
Link copied to clipboard

The app's defaults the graph was built with; ShellHost takes its layout policy from them.

Link copied to clipboard
Link copied to clipboard

The app bar's overflow menu on the tabs' roots. Empty draws no menu button.

Link copied to clipboard
Link copied to clipboard

Where the app opens: a tab, which shows the shell on it, or a page, shown on its own before the shell as a start screen. The first tab unless the app says otherwise.

Link copied to clipboard

Every place the app can start: the tabs, then the start screens.

Link copied to clipboard

The start screens a start screen choice offers besides the tabs.

Link copied to clipboard

The first tab, or null in a graph of pages only.

Link copied to clipboard
Link copied to clipboard

The default transition of each kind of destination, and per navigation layout.

Functions

Link copied to clipboard

Whether key can be navigated to.

Link copied to clipboard
Link copied to clipboard
fun keyFor(intent: Intent): NavKey?

The destination intent asks for, from the first deep link that recognises it, or null when none does or the destination is not registered.

Link copied to clipboard
fun tabIndexOf(key: NavKey): Int
Link copied to clipboard

The transition key enters and leaves with in layout.