ShellTransitions

class ShellTransitions(val children: ScreenTransition = ScreenTransition.Slide, val pages: ScreenTransition = ScreenTransition.Activity, val byLayout: Map<ShellLayoutMode, ShellTransitions> = emptyMap())(source)

Which ScreenTransition each kind of destination uses when it declares none, with defaults of their own for some navigation layouts.

transitions(
ShellTransitions(
children = ScreenTransition.Slide,
pages = ScreenTransition.Activity,
byLayout = mapOf(ShellLayoutMode.PermanentDrawer to ShellTransitions(children = ScreenTransition.Fade)),
),
)

A destination's own transition wins over all of these.

Constructors

Link copied to clipboard
constructor(children: ScreenTransition = ScreenTransition.Slide, pages: ScreenTransition = ScreenTransition.Activity, byLayout: Map<ShellLayoutMode, ShellTransitions> = emptyMap())

Properties

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

Functions

Link copied to clipboard

The transition of a destination of kind declaring own, in layout.