ShellGraphBuilder
Collects an app's destinations. The host creates it, lets each feature and the app register their destinations, and calls build.
A destination registered without a topBar takes the style defaults gives its kind.
Constructors
Functions
Optional host content above the navigation bar. Absent unless explicitly registered, and steps aside while the player is showing.
Adds a destination pushed inside the current tab, keeping the navigation bar.
Maps the intents the app's activity receives, at launch or while running, to destinations: a launcher shortcut, a notification, a widget or a link. The host opens the destination as if a screen had called navigate(key).
Lists the drawer's entries, top to bottom. Entries given to DrawerBuilder.footer come after all of them, pinned to the bottom edge, whatever order the calls were made in.
Lists the entries of the app bar's overflow menu, shown on the tabs' roots. A DrawerEntry.Spacer draws a divider. supportUs() adds the Support page, the way the Toolkit's app bar offers it.
Adds a destination that covers the shell like an activity would.
Adds a page unless the app registered its own for K. Toolkit features register their pages with it, so an app replaces any of them by registering the same key first.
Where the app opens, the first tab if this is not called. A tab opens the shell on it; a page is shown on its own, with no shell under it, as a start screen: it enters the shell by navigating to a tab or calling ShellNavigator.enterShell(), and back from it leaves the app. The host can decide at launch instead, for a screen shown only once.
Pages a start screen choice offers besides the tabs, to try a start screen without making it the app's start.
Adds a root of the shell. Tabs appear in the order they are added, and the first is where the app starts and where back ends before the app closes.
The transition each kind of destination uses when it declares none: children slide, pages move like activities, unless changed here, for every layout or per layout.