Android 12 Developer Preview is here! Try it out, and give us your feedback!

OnBackStackChangedListener

interface OnBackStackChangedListener
androidx.fragment.app.FragmentManager.OnBackStackChangedListener

Interface to watch for changes to the back stack.

Summary

Public methods
abstract Unit

Called whenever the contents of the back stack change.

Public methods

onBackStackChanged

@MainThread abstract fun onBackStackChanged(): Unit

Called whenever the contents of the back stack change.