ShellLayoutInfo

data class ShellLayoutInfo(val mode: ShellLayoutMode, val windowWidth: Dp, val windowHeight: Dp, val listDetail: Boolean, val contentMaxWidth: Dp = Dp.Unspecified, val allowsLargeTopBar: Boolean = true)(source)

The layout the shell is currently drawing, and the window it is drawing it for.

Constructors

Link copied to clipboard
constructor(mode: ShellLayoutMode, windowWidth: Dp, windowHeight: Dp, listDetail: Boolean, contentMaxWidth: Dp = Dp.Unspecified, allowsLargeTopBar: Boolean = true)

Properties

Link copied to clipboard

Whether the window is tall enough for large, collapsing app bars.

Link copied to clipboard

ShellLayoutPolicy.contentMaxWidth, or Dp.Unspecified when the developer options lift it.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun maxWidthFor(contentWidth: ContentWidth): Dp

The width a destination's content is limited to, given its own ContentWidth.

Link copied to clipboard

style, unless the window is too short for a large bar.