Package 

Class MaterialMotionKt

    • Method Summary

      Modifier and Type Method Description
      final static <S extends Any> Unit MaterialMotion(S targetState, Function1<AnimatedContentTransitionScope<S>, ContentTransform> transitionSpec, Modifier modifier, Boolean pop, Alignment contentAlignment, String label, Function1<S, Object> contentKey, Function2<AnimatedVisibilityScope, S, Unit> content) MaterialMotion allows to switch between two layouts with a material motion animation.
      final static <S extends Any> Unit MaterialMotion(Transition<S> $self, Function1<AnimatedContentTransitionScope<S>, ContentTransform> transitionSpec, Modifier modifier, Boolean pop, Alignment contentAlignment, Function1<S, Object> contentKey, Function2<AnimatedVisibilityScope, S, Unit> content) MaterialMotion allows to switch between two layouts with a material motion animation.
      • Methods inherited from class java.lang.Object

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

      • MaterialMotion

         final static <S extends Any> Unit MaterialMotion(S targetState, Function1<AnimatedContentTransitionScope<S>, ContentTransform> transitionSpec, Modifier modifier, Boolean pop, Alignment contentAlignment, String label, Function1<S, Object> contentKey, Function2<AnimatedVisibilityScope, S, Unit> content)

        MaterialMotion allows to switch between two layouts with a material motion animation.

        Parameters:
        targetState - is a key representing your target layout state.
        transitionSpec - the ContentTransform to configure the enter/exit animation.
        modifier - Modifier to be applied to the animation container.
        pop - whether motion contents are rendered in reverse order.
        label - An optional label to differentiate from other animations in Android Studio.
      • MaterialMotion

         final static <S extends Any> Unit MaterialMotion(Transition<S> $self, Function1<AnimatedContentTransitionScope<S>, ContentTransform> transitionSpec, Modifier modifier, Boolean pop, Alignment contentAlignment, Function1<S, Object> contentKey, Function2<AnimatedVisibilityScope, S, Unit> content)

        MaterialMotion allows to switch between two layouts with a material motion animation.

        Parameters:
        transitionSpec - the ContentTransform to configure the enter/exit animation.
        modifier - Modifier to be applied to the animation container.
        pop - whether motion contents are rendered in reverse order.