Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class DefaultAnimatedState<T : NavArgument>(val args: ImmutableList<T>) : AnimatedNavState

Functions

Link copied to clipboard

For the targetState, decorate the innerContent as the content of AnimatedContent

Link copied to clipboard
open override fun targetState(args: ImmutableList<T>, backStackDepth: Int): NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T>

For the args and backstack create the expected target AnimatedNavState.

Link copied to clipboard
open override fun updateTransition(args: ImmutableList<T>, backStackDepth: Int): Transition<NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T>>

Sets up a Transition for driving an AnimatedContent used to navigate between screens. The transition should be setup from the current NavDecoration.DecoratedContent arguments and backstack depth, and then updated when the arguments or backstack depth change.