Package 

Class MaterialSharedAxisKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> Unit MaterialSharedAxisX(T targetState, Boolean forward, Modifier modifier, Dp slideDistance, String label, Function2<AnimatedVisibilityScope, T, Unit> content) MaterialSharedAxisX allows to switch between two layouts with a shared X-axis animation.
      final static <T extends Any> Unit MaterialSharedAxisY(T targetState, Boolean forward, Modifier modifier, Dp slideDistance, String label, Function2<AnimatedVisibilityScope, T, Unit> content) MaterialSharedAxisY allows to switch between two layouts with a shared Y-axis animation.
      final static <T extends Any> Unit MaterialSharedAxisZ(T targetState, Boolean forward, Modifier modifier, String label, Function2<AnimatedVisibilityScope, T, Unit> content) MaterialSharedAxisZ allows to switch between two layouts with a shared Z-axis animation.
      • Methods inherited from class java.lang.Object

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

      • MaterialSharedAxisX

         final static <T extends Any> Unit MaterialSharedAxisX(T targetState, Boolean forward, Modifier modifier, Dp slideDistance, String label, Function2<AnimatedVisibilityScope, T, Unit> content)

        MaterialSharedAxisX allows to switch between two layouts with a shared X-axis animation.

        Parameters:
        targetState - is a key representing your target layout state.
        forward - whether the direction of the animation is forward.
        modifier - Modifier to be applied to the animation container.
        slideDistance - slide distance of the animation.
        label - An optional label to differentiate from other animations in Android Studio.
      • MaterialSharedAxisY

         final static <T extends Any> Unit MaterialSharedAxisY(T targetState, Boolean forward, Modifier modifier, Dp slideDistance, String label, Function2<AnimatedVisibilityScope, T, Unit> content)

        MaterialSharedAxisY allows to switch between two layouts with a shared Y-axis animation.

        Parameters:
        targetState - is a key representing your target layout state.
        forward - whether the direction of the animation is forward.
        modifier - Modifier to be applied to the animation container.
        slideDistance - slide distance of the animation.
        label - An optional label to differentiate from other animations in Android Studio.
      • MaterialSharedAxisZ

         final static <T extends Any> Unit MaterialSharedAxisZ(T targetState, Boolean forward, Modifier modifier, String label, Function2<AnimatedVisibilityScope, T, Unit> content)

        MaterialSharedAxisZ allows to switch between two layouts with a shared Z-axis animation.

        Parameters:
        targetState - is a key representing your target layout state.
        forward - whether the direction of the animation is forward.
        modifier - Modifier to be applied to the animation container.
        label - An optional label to differentiate from other animations in Android Studio.