NavController.OnNavigatedListener

public static interface NavController.OnNavigatedListener

androidx.navigation.NavController.OnNavigatedListener


OnNavigatorNavigatedListener receives a callback when the associated controller navigates to a new destination.

Summary

Public methods

abstract void onNavigated(NavController controller, NavDestination destination)

onNavigatorNavigated is called when the controller navigates to a new destination.

Public methods

onNavigated

public abstract void onNavigated (NavController controller, 
                NavDestination destination)

onNavigatorNavigated is called when the controller navigates to a new destination. This navigation may be to a destination that has not been seen before, or one that was previously on the back stack. This method is called after navigation is complete, but associated transitions may still be playing.

Parameters
controller NavController: the controller that navigated

destination NavDestination: the new destination