-
- 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 classNavAction.IdleThe default action for every new instance of NavController.
public classNavAction.NavigateAn action type that tells NavController.navigate or NavController.moveToTop was the last successful call.
public classNavAction.ReplaceAn action type that tells NavController.replaceLast, NavController.replaceAll or NavController.replaceUpTo was the last successful call.
public classNavAction.PopAn action type that tells NavController.pop, NavController.popAll or NavController.popUpTo was the last successful call.
-