AnimatedNavDecorator

todo Finish docs.

AnimatedNavDecorator is used by AnimatedNavDecoration as a way to provide hooks into its AnimatedContent, allowing for custom navigation animations.

Inheritors

Types

Link copied to clipboard
interface Factory

Functions

Link copied to clipboard
abstract fun AnimatedContentScope.Decoration(targetState: S, innerContent: @Composable (T) -> Unit)

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

Link copied to clipboard
abstract fun targetState(args: ImmutableList<T>, backStackDepth: Int): S

For the args and backstack create the expected target AnimatedNavState.

Link copied to clipboard
Link copied to clipboard
abstract fun updateTransition(args: ImmutableList<T>, backStackDepth: Int): Transition<S>

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.