Package 

Interface NavTransitionSpec


  • 
    public interface NavTransitionSpec<T extends Object>
    
                        

    The specification of all animated transition between destinations. Used in AnimatedNavHost.

    • Method Summary

      Modifier and Type Method Description
      abstract ContentTransform getContentTransform(NavTransitionScope $self, NavAction action, T from, T to) Returns a ContentTransform that describes the desired transition between destinations to and from.
      ContentTransform toEmptyBackstack(NavTransitionScope $self, NavAction action, T from) Returns a ContentTransform that describes the desired transition between a previous destination and an empty backstack state.
      ContentTransform fromEmptyBackstack(NavTransitionScope $self, NavAction action, T to) Returns a ContentTransform that describes the desired transition between an empty backstack state and a new destinationNote: you may need set some non-zero width/height composable as emptyBackstackPlaceholder in AnimatedNavHost in order for a transition to run correctly.
      • Methods inherited from class java.lang.Object

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

      • toEmptyBackstack

         ContentTransform toEmptyBackstack(NavTransitionScope $self, NavAction action, T from)

        Returns a ContentTransform that describes the desired transition between a previous destination and an empty backstack state.

        Note: you may need set some non-zero width/height composable as emptyBackstackPlaceholder in AnimatedNavHost in order for a transition to run correctly.

      • fromEmptyBackstack

         ContentTransform fromEmptyBackstack(NavTransitionScope $self, NavAction action, T to)

        Returns a ContentTransform that describes the desired transition between an empty backstack state and a new destination

        Note: you may need set some non-zero width/height composable as emptyBackstackPlaceholder in AnimatedNavHost in order for a transition to run correctly.