Package 

Interface NavTransitionScope

    • Method Summary

      Modifier and Type Method Description
      abstract ExitTransition slideOutOfContainer(AnimatedContentTransitionScope.SlideDirection towards, FiniteAnimationSpec<IntOffset> animationSpec, Function1<Integer, Integer> targetOffset) This defines a horizontal/vertical exit transition to completely slide out of the AnimatedNavHost container.
      abstract EnterTransition slideIntoContainer(AnimatedContentTransitionScope.SlideDirection towards, FiniteAnimationSpec<IntOffset> animationSpec, Function1<Integer, Integer> initialOffset) This defines a horizontal/vertical slide-in that is specific to AnimatedNavHost from the edge of the container.
      abstract ContentTransform using(ContentTransform $self, SizeTransform sizeTransform) Customizes the SizeTransform of a given ContentTransform.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • slideOutOfContainer

         abstract ExitTransition slideOutOfContainer(AnimatedContentTransitionScope.SlideDirection towards, FiniteAnimationSpec<IntOffset> animationSpec, Function1<Integer, Integer> targetOffset)

        This defines a horizontal/vertical exit transition to completely slide out of the AnimatedNavHost container. The offset amount is dynamically calculated based on the current size of the AnimatedNavHost and the new target size. This offset gets passed to targetOffset lambda. By default, targetOffset uses this offset as is, but it can be customized to slide a distance based on the offset. slideOutOfContainer is a convenient alternative to slideOutHorizontally and slideOutVertically when the incoming and outgoing content differ in size. Otherwise, it would be equivalent to slideOutHorizontally and slideOutVertically with an offset of the full width/height.

        towards specifies the slide direction. Content can be slided out of the container towards SlideDirection.Left, SlideDirection.Right, SlideDirection.Up and SlideDirection.Down.

        animationSpec defines the animation that will be used to animate the slide-out.

      • slideIntoContainer

         abstract EnterTransition slideIntoContainer(AnimatedContentTransitionScope.SlideDirection towards, FiniteAnimationSpec<IntOffset> animationSpec, Function1<Integer, Integer> initialOffset)

        This defines a horizontal/vertical slide-in that is specific to AnimatedNavHost from the edge of the container. The offset amount is dynamically calculated based on the current size of the AnimatedNavHost and its content alignment. This offset (may be positive or negative based on the direction of the slide) is then passed to initialOffset. By default, initialOffset will be using the offset calculated from the system to slide the content in. slideIntoContainer is a convenient alternative to slideInHorizontally and slideInVertically when the incoming and outgoing content differ in size. Otherwise, it would be equivalent to slideInHorizontally and slideInVertically with an offset of the full width/height.

        towards specifies the slide direction. Content can be slided into the container towards SlideDirection.Left, SlideDirection.Right, SlideDirection.Up and SlideDirection.Down.

        animationSpec defines the animation that will be used to animate the slide-in.

      • using

         abstract ContentTransform using(ContentTransform $self, SizeTransform sizeTransform)

        Customizes the SizeTransform of a given ContentTransform.