data class ComposeRouteTransition(val enter: AnimatedContentTransitionScope<RouteStackEntry>.(density: Density) -> EnterTransition, val exit: AnimatedContentTransitionScope<RouteStackEntry>.(density: Density) -> ExitTransition, val popEnter: AnimatedContentTransitionScope<RouteStackEntry>.(density: Density) -> EnterTransition, val popExit: AnimatedContentTransitionScope<RouteStackEntry>.(density: Density) -> ExitTransition, val supportsPredictiveBackForEdge: (edge: Int) -> Boolean = DefaultPredictiveBackSupport, val predictiveBackEnter: AnimatedContentTransitionScope<RouteStackEntry>.(density: Density, swipeEdge: Int) -> EnterTransition = { density, edge -> popEnter(density) }, val predictiveBackExit: AnimatedContentTransitionScope<RouteStackEntry>.(density: Density, swipeEdge: Int) -> ExitTransition = { density, edge -> popExit(density) }, val enterZ: Float = 1.0f, val popEnterZ: Float = -1f, val predictiveBackEnterZ: Float = -1f, val baseLayerOverlay: @Composable BoxScope.(isPopping: Boolean, isPredictiveBack: Boolean, transition: SeekableTransitionState<RouteStackEntry>) -> Unit? = null) :
IRouteTransition ComposeRouteTransition defines a route transition
The animation for incoming content during a push()
The animation for the outgoing content during a push()
The animation for incoming content during a pop()
The animation for outgoing content during a pop()
An optional animation for predictive back. If no animation is supplied, the pop enter animation will be used
An optional animation for predictive back. If no animation is supplied, the pop exit animation will be used
The z-layer for the enter animation. By default, the enter animation will be on top of the exit animation. Valid values are 1f or -1f. The exit animation will be placed on the inverse z-layer. For example, if enterZ is set to 1f, the exit animation is set to -1f.
An optional overlay for the bottom-most layer when transitioning. This allows placing a scrim or blackout transition during the animation.