OnNavigatedListener

interface OnNavigatedListener
androidx.navigation.NavController.OnNavigatedListener

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

Summary

Public methods
abstract Unit
onNavigated(controller: NavController, destination: NavDestination)

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

Public methods

onNavigated

abstract fun onNavigated(controller: NavController, destination: NavDestination): Unit

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 NavController: the new destination