Package-level declarations

Types

Link copied to clipboard
sealed interface ContentWidth

How wide a destination's content may grow on a large window.

Link copied to clipboard

Collects ShellGraphBuilder.deepLinks. The first link that returns a key wins.

Link copied to clipboard

Everything the shell needs to know to show one kind of NavKey.

Link copied to clipboard

Where a destination is shown, and therefore how it enters, leaves and answers the back gesture.

Link copied to clipboard
Link copied to clipboard
sealed interface DrawerEntry

One row of the navigation drawer, or of the rail once it holds more than the tabs, or of the app bar's overflow menu.

Link copied to clipboard
data class NavigationDefaults(val tabTopBarStyle: TopBarStyle = TopBarStyle.Small, val childTopBarStyle: TopBarStyle = TopBarStyle.Small, val pageTopBarStyle: TopBarStyle = TopBarStyle.Large, val layoutPolicy: ShellLayoutPolicy = ShellLayoutPolicy())

An app's own navigation defaults, used wherever a destination or the host declares none.

Link copied to clipboard
enum class PaneRole : Enum<PaneRole>

The part a page plays when the window is wide enough to show two pages side by side.

Link copied to clipboard
data class ShellCapabilities(val tabCount: Int, val startOptionCount: Int, val declaresBanner: Boolean, val declaresPlayer: Boolean, val hasFramedPages: Boolean, val hasBackNavigation: Boolean, val layoutReachesBottomBar: Boolean, val layoutReachesWideNavigation: Boolean, val hasContentWidthLimit: Boolean, val hideSingleTabBottomBar: Boolean = false)

What the app's declared shell can do: facts read from its ShellGraph and ShellLayoutPolicy alone, so a setting can tell whether it has anything to change in this app.

Link copied to clipboard

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

Link copied to clipboard
class ShellGraphBuilder(@StringRes appTitle: Int, appIcon: ToolkitIcon? = null, val defaults: NavigationDefaults = NavigationDefaults())

Collects an app's destinations. The host creates it, lets each feature and the app register their destinations, and calls build.

Link copied to clipboard
class ShellPlayer(val isActive: @Composable () -> Boolean, val mini: @Composable () -> Unit, val onDismiss: () -> Unit? = null, val expanded: @Composable (collapse: () -> Unit) -> Unit)

A player that docks above the navigation bar and expands to cover the whole shell.

Link copied to clipboard
class ShellTab(val key: NavKey, @StringRes val label: Int, val icon: ToolkitIcon, val selectedIcon: ToolkitIcon = icon, val badge: String? = null, val badgeText: @Composable () -> String?? = null, val search: TabSearch? = null, @StringRes val shortLabel: Int? = null)

A root of the shell, as it appears in the navigation bar, the rail and the permanent drawer.

Link copied to clipboard
class TabSearch(@StringRes val hint: Int)

A search field in a tab's app bar, where the title would be.

Link copied to clipboard

How a destination's app bar answers its content scrolling, whatever its TopBarStyle.

Link copied to clipboard

The app bar a tab, child or page is drawn under.

Properties

Link copied to clipboard

The capabilities of the app ShellHost is drawing.

Link copied to clipboard

The TopBarScrollMode of the destination around this point, for a page that draws its own PageScaffold.

Functions

Link copied to clipboard
fun shellGraph(@StringRes appTitle: Int, appIcon: ToolkitIcon? = null, defaults: NavigationDefaults = NavigationDefaults(), builder: ShellGraphBuilder.() -> Unit): ShellGraph

Builds a ShellGraph: an app's tabs, children, pages, drawer, overflow menu, start screens and deep links.