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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# FloatingWindow\n==============\n\nArtifact: [androidx.navigation:navigation-common](/jetpack/androidx/releases/navigation) \n[View Source](https://cs.android.com/search?q=file:androidx/navigation/FloatingWindow.kt+class:androidx.navigation.FloatingWindow) \nAdded in [2.1.0](/jetpack/androidx/releases/navigation#2.1.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/navigation/FloatingWindow \"View this page in Java\")\nCommon/AllAndroid/JVM\n - Cmn \n\n ```\n interface FloatingWindow\n``` \nKnown direct subclasses \n[BottomSheetNavigator.Destination](/reference/kotlin/androidx/compose/material/navigation/BottomSheetNavigator.Destination), [DialogFragmentNavigator.Destination](/reference/kotlin/androidx/navigation/fragment/DialogFragmentNavigator.Destination), [DialogNavigator.Destination](/reference/kotlin/androidx/navigation/compose/DialogNavigator.Destination) \n\n|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BottomSheetNavigator.Destination](/reference/kotlin/androidx/compose/material/navigation/BottomSheetNavigator.Destination) | [NavDestination](/reference/kotlin/androidx/navigation/NavDestination) specific to [BottomSheetNavigator](/reference/kotlin/androidx/compose/material/navigation/BottomSheetNavigator). |\n| [DialogFragmentNavigator.Destination](/reference/kotlin/androidx/navigation/fragment/DialogFragmentNavigator.Destination) | NavDestination specific to [DialogFragmentNavigator](/reference/kotlin/androidx/navigation/fragment/DialogFragmentNavigator). |\n| [DialogNavigator.Destination](/reference/kotlin/androidx/navigation/compose/DialogNavigator.Destination) | NavDestination specific to [DialogNavigator](/reference/kotlin/androidx/navigation/compose/DialogNavigator) |\n\n*** ** * ** ***\n\nA marker interface for [NavDestination](/reference/kotlin/androidx/navigation/NavDestination) subclasses that float above the view of other destinations (i.e. androidx.navigation.fragment.DialogFragmentNavigator.Destination).\n\nDestinations that implement this interface will automatically be popped off the back stack when you navigate to a new destination.\n\n[androidx.navigation.NavController.OnDestinationChangedListener](/reference/kotlin/androidx/navigation/NavController.OnDestinationChangedListener) instances can also customize their behavior based on whether the destination is a FloatingWindow."]]