ShellSettings

data class ShellSettings(val layoutMode: ShellLayoutMode = ShellLayoutMode.Auto, val topBarOverride: TopBarOverride = TopBarOverride.AsDeclared, val tabTransition: TabTransitionStyle = TabTransitionStyle.Directional, val accessoryMode: AccessoryMode = AccessoryMode.AsDeclared, val hideBottomBarOnScroll: Boolean = true, val limitContentWidth: Boolean = true, val animationSpeed: AnimationSpeed = AnimationSpeed.Normal, val backEdgeStyle: BackEdgeStyle = BackEdgeStyle.System, val startOverride: Int = -1, val navigationBarStyle: NavigationBarStyle = NavigationBarStyle.Standard, val navigationTint: NavigationTint = NavigationTint.Always, val hideTopBarOnScroll: Boolean = false, val entranceStyle: EntranceStyle = EntranceStyle.Slide, val motionTempo: MotionTempo = MotionTempo.Calm, val entranceReplay: EntranceReplay = EntranceReplay.OnOpen)(source)

The shell's persisted overrides: how it lays out, moves and draws its chrome.

Every one is a developer option, offered by :library:feature:developer once unlocked, to force, compare and exercise the shell's variations. The defaults leave the app exactly as its graph and layout policy declare it, and ShellPreferencesRepository.resetDeveloperOptions returns to them. The person's own preferences, such as the theme or the navigation labels, are not kept here.

Constructors

Link copied to clipboard
constructor(layoutMode: ShellLayoutMode = ShellLayoutMode.Auto, topBarOverride: TopBarOverride = TopBarOverride.AsDeclared, tabTransition: TabTransitionStyle = TabTransitionStyle.Directional, accessoryMode: AccessoryMode = AccessoryMode.AsDeclared, hideBottomBarOnScroll: Boolean = true, limitContentWidth: Boolean = true, animationSpeed: AnimationSpeed = AnimationSpeed.Normal, backEdgeStyle: BackEdgeStyle = BackEdgeStyle.System, startOverride: Int = -1, navigationBarStyle: NavigationBarStyle = NavigationBarStyle.Standard, navigationTint: NavigationTint = NavigationTint.Always, hideTopBarOnScroll: Boolean = false, entranceStyle: EntranceStyle = EntranceStyle.Slide, motionTempo: MotionTempo = MotionTempo.Calm, entranceReplay: EntranceReplay = EntranceReplay.OnOpen)

Properties

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

When a screen's elements enter: each time it is opened, the default, on every return to it, or only for the first copy of each screen while the app runs.

Link copied to clipboard

How elements with animateVisibility enter: the style every screen's cascade follows.

Link copied to clipboard
Link copied to clipboard

Whether the app bar slides away as content scrolls down, whatever its style, and comes back as soon as it scrolls up. A large bar collapses first, and the bar leaves entirely, from under the status bar too, so content scrolls on beneath it.

Link copied to clipboard
Link copied to clipboard

Whether content keeps to the layout policy's maximum width on large windows.

Link copied to clipboard

How quickly everything moves: the springs of the theme's motion scheme.

Link copied to clipboard
Link copied to clipboard

Where the next launch opens, as an index into the graph's start options; -1 as declared.

Link copied to clipboard
Link copied to clipboard