# NavController.OnDestinationChangedListener

Artifact: [androidx.navigation:navigation-runtime](https://developer.android.com/jetpack/androidx/releases/navigation) [View Source](https://cs.android.com/search?q=file:androidx/navigation/NavController.+class:androidx.navigation.NavController.OnDestinationChangedListener) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation#1.0.0)

*** ** * ** ***


```
public fun interface NavController.OnDestinationChangedListener
```

<br />

*** ** * ** ***

OnDestinationChangedListener receives a callback when the `https://developer.android.com/reference/androidx/navigation/NavController#currentDestination()` or its arguments change.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/navigation/NavController.OnDestinationChangedListener#onDestinationChanged(androidx.navigation.NavController,androidx.navigation.NavDestination,android.os.Bundle)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavController controller, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavDestination destination, https://developer.android.com/reference/android/os/Bundle.html arguments )` Callback for when the `https://developer.android.com/reference/androidx/navigation/NavController#currentDestination()` or its arguments change. |

## Public methods

### onDestinationChanged

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation#1.0.0)

```
abstract void onDestinationChanged(
    @NonNull NavController controller,
    @NonNull NavDestination destination,
    Bundle arguments
)
```

Callback for when the `https://developer.android.com/reference/androidx/navigation/NavController#currentDestination()` or its arguments change. 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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavController controller` | the controller that navigated |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavDestination destination` | the new destination |
| `https://developer.android.com/reference/android/os/Bundle.html arguments` | the arguments passed to the destination |