ShellChromeController

class ShellChromeController(val showsMenuButton: Boolean, val openNavigation: () -> Unit)(source)

What a screen inside the shell can ask of the chrome around it: whether the navigation hides in a drawer, and a way to open it, for screens that draw their own header.

Constructors

Link copied to clipboard
constructor(showsMenuButton: Boolean, openNavigation: () -> Unit)

Properties

Link copied to clipboard
val openNavigation: () -> Unit

Opens the navigation drawer or rail. Nothing in the Toolkit calls it, since its own screens use the shell's app bar; it is the host-facing way for a screen that draws its own header to open the navigation, documented in the module README.

Link copied to clipboard