ShellCapabilities

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)(source)

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.

They describe the app, not the window it is drawn in now, and not the developer options: an app whose policy shows a bottom bar on phones usesBottomNavigation while a tablet draws a rail, or while a forced layout does.

Build it with of; inside the shell, read LocalShellCapabilities.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the graph declares a bottom banner.

Link copied to clipboard

Whether the graph declares a player.

Link copied to clipboard

Whether the app has a bottom accessory to show or hide.

Link copied to clipboard

Whether the app has more than one destination to move between.

Link copied to clipboard

Whether the banner can be shown: it is declared, and docks on the tabs' navigation bar.

Link copied to clipboard

Whether the declared tabs need a bottom bar, including in a forced phone layout.

Link copied to clipboard

Whether the layout policy limits how wide content grows.

Link copied to clipboard

Whether some page is drawn in the shell's page frame, with its app bar.

Link copied to clipboard

Whether the app can start in more than one place.

Link copied to clipboard

Whether there is more than one tab to move between.

Link copied to clipboard

Whether the player can be shown: it is declared, and docks in the tabs' chrome.

Link copied to clipboard

Whether some app bar is drawn by the shell: the tabs' own, or a framed page's.

Link copied to clipboard

Whether the app navigates between tabs, so the shell draws navigation chrome.

Link copied to clipboard

Whether the host omits a single tab's bottom bar.

Link copied to clipboard

Whether the layout policy resolves to the bottom bar on some window.

Link copied to clipboard

Whether the layout policy resolves to a rail or permanent drawer on some window.

Link copied to clipboard

How many places the app can start: its tabs, then its start screens.

Link copied to clipboard

How many tabs the graph declares.

Link copied to clipboard

Whether the app shows its tabs in a bottom navigation bar on some window.

Link copied to clipboard

Whether the app shows its tabs in a rail or permanent drawer on some window.