Stay organized with collections
Save and categorize content based on your preferences.
Provides APIs to easily intercept platform gesture events, including swipes and clicks, to help in app navigation.
Interfaces
Classes
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-08-13 UTC.
[null,null,["Last updated 2025-08-13 UTC."],[],[],null,["# androidx.navigationevent\n========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/navigationevent/package-summary \"View this page in Kotlin\") \\|Java\n\nProvides APIs to easily intercept platform gesture events, including swipes and clicks, to help in app navigation.\n\nInterfaces\n----------\n\n|------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [NavigationEventDispatcherOwner](/reference/androidx/navigationevent/NavigationEventDispatcherOwner) | A class that has an [NavigationEventDispatcher](/reference/androidx/navigationevent/NavigationEventDispatcher) that allows you to register a [NavigationEventCallback](/reference/androidx/navigationevent/NavigationEventCallback) for handling navigation events. |\n| [NavigationEventInfo](/reference/androidx/navigationevent/NavigationEventInfo) | Provides contextual information about a navigation state (e.g., a screen or route). |\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DirectNavigationEventInputHandler](/reference/androidx/navigationevent/DirectNavigationEventInputHandler) | An input handler that can send events to a [NavigationEventDispatcher](/reference/androidx/navigationevent/NavigationEventDispatcher). |\n| [NavigationEvent](/reference/androidx/navigationevent/NavigationEvent) | Represents a system navigation event, such as a predictive back gesture or a back button press. |\n| [NavigationEventCallback](/reference/androidx/navigationevent/NavigationEventCallback) | Callback for handling [NavigationEvent](/reference/androidx/navigationevent/NavigationEvent)s. |\n| [NavigationEventDispatcher](/reference/androidx/navigationevent/NavigationEventDispatcher) | A dispatcher for navigation events that can be organized hierarchically. |\n| [NavigationEventInputHandler](/reference/androidx/navigationevent/NavigationEventInputHandler) | An input handler that can send events to a [NavigationEventDispatcher](/reference/androidx/navigationevent/NavigationEventDispatcher). |\n| [NavigationEventPriority](/reference/androidx/navigationevent/NavigationEventPriority) | Priority to be provided to the [NavigationEventCallback](/reference/androidx/navigationevent/NavigationEventCallback) when it is being initialized to determine when the callback should be triggered. |\n| [NavigationEventState](/reference/androidx/navigationevent/NavigationEventState) | Represents the state of a system navigation gesture, like a predictive back swipe. |\n| [NavigationEventState.Idle](/reference/androidx/navigationevent/NavigationEventState.Idle) | The UI is settled, and no navigation gesture is currently active. |\n| [NavigationEventState.InProgress](/reference/androidx/navigationevent/NavigationEventState.InProgress) | A navigation gesture is actively in progress. |\n| [OnBackInvokedInputHandler](/reference/androidx/navigationevent/OnBackInvokedInputHandler) | Provides input from OnBackInvokedCallback to the given [NavigationEventDispatcher](/reference/androidx/navigationevent/NavigationEventDispatcher). |\n| [ViewTreeNavigationEventDispatcherOwnerKt](/reference/androidx/navigationevent/ViewTreeNavigationEventDispatcherOwnerKt) | |\n| [NavigationEventInfo.NotProvided](/reference/androidx/navigationevent/NavigationEventInfo.NotProvided) | A default used when no specific information is associated with a navigation event. |\n| [NavigationEventPriority.Companion](/reference/androidx/navigationevent/NavigationEventPriority.Companion) | |"]]