Stay organized with collections
Save and categorize content based on your preferences.
public interface 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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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\n[Kotlin](/reference/kotlin/androidx/navigation/FloatingWindow \"View this page in Kotlin\") \\|Java\n\n\n```\npublic interface FloatingWindow\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[DialogFragmentNavigator.Destination](/reference/androidx/navigation/fragment/DialogFragmentNavigator.Destination) \n\n|--------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [DialogFragmentNavigator.Destination](/reference/androidx/navigation/fragment/DialogFragmentNavigator.Destination) | NavDestination specific to [DialogFragmentNavigator](/reference/androidx/navigation/fragment/DialogFragmentNavigator). |\n\n*** ** * ** ***\n\nA marker interface for [NavDestination](/reference/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/androidx/navigation/NavController.OnDestinationChangedListener) instances can also customize their behavior based on whether the destination is a FloatingWindow."]]