Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

NavController.OnDestinationChangedListener

public static interface NavController.OnDestinationChangedListener

androidx.navigation.NavController.OnDestinationChangedListener


OnDestinationChangedListener receives a callback when the NavController.getCurrentDestination() or its arguments change.

Summary

Public methods

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

Callback for when the NavController.getCurrentDestination() or its arguments change.

Public methods

onDestinationChanged

public abstract void onDestinationChanged (NavController controller, 
                NavDestination destination, 
                Bundle arguments)

Callback for when the NavController.getCurrentDestination() 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
controller NavController: the controller that navigated

destination NavDestination: the new destination

arguments Bundle: the arguments passed to the destination