欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

FloatingWindow

interface FloatingWindow
androidx.navigation.FloatingWindow

A marker interface for NavDestination subclasses that float above the view of other destinations (i.e. androidx.navigation.fragment.DialogFragmentNavigator.Destination).

Destinations that implement this interface will automatically be popped off the back stack when you navigate to a new destination.

androidx.navigation.NavController.OnDestinationChangedListener instances can also customize their behavior based on whether the destination is a FloatingWindow.

Summary