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)),
),
)Content copied to clipboard
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())
Functions
Link copied to clipboard
fun resolve(kind: DestinationKind, own: ScreenTransition?, layout: ShellLayoutMode): ScreenTransition