Package 

Interface NavAction

  • All Implemented Interfaces:
    android.os.Parcelable

    @Stable() 
    public interface NavAction
     implements Parcelable
                        

    A navigation action hint. It is passed as a parameter into NavController.setNewBackstack and then used in NavTransitionSpec.getContentTransform to select some animation.

    You may implement this interface to create more action types. If you want to use the last action from the NavBackstack as a parameter for a composable function, make sure your action class is Stable or Immutable.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class NavAction.Idle

      The default action for every new instance of NavController.

      public class NavAction.Navigate

      An action type that tells NavController.navigate or NavController.moveToTop was the last successful call.

      public class NavAction.Replace

      An action type that tells NavController.replaceLast, NavController.replaceAll or NavController.replaceUpTo was the last successful call.

      public class NavAction.Pop

      An action type that tells NavController.pop, NavController.popAll or NavController.popUpTo was the last successful call.

    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class dev.olshevski.navigation.reimagined.NavAction

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait