androidx.navigationevent


Provides APIs to easily intercept platform gesture events, including swipes and clicks, to help in app navigation.

Interfaces

NavigationEventDispatcherOwner

A class that has an NavigationEventDispatcher that allows you to register a NavigationEventHandler for handling navigation events.

OnBackCompletedFallback

A listener that provides a final fallback action for unhandled backCompleted callbacks.

Classes

DirectNavigationEventInput

An input that can send events to a NavigationEventDispatcher.

NavigationEvent

Represents a system navigation event, such as a predictive back gesture or a back button press.

NavigationEventDispatcher

A dispatcher for navigation events that can be organized hierarchically.

NavigationEventHandler

Base class for handling navigation gestures dispatched by a NavigationEventDispatcher.

NavigationEventHistory

Represents an immutable snapshot of the navigation history stack.

NavigationEventInfo

Provides contextual information about a navigation state (e.g., a screen or route).

NavigationEventInput

An abstract class for components that generate and dispatch navigation events.

NavigationEventTransitionState

Represents the physical state of a navigation gesture, such as a predictive back or forward swipe.

NavigationEventTransitionState.InProgress

Represents the state where a navigation gesture is actively in progress.

OnBackInvokedDefaultInput

Provides input to a NavigationEventDispatcher by registering an OnBackInvokedCallback with the OnBackInvokedDispatcher.PRIORITY_DEFAULT priority to onBackInvokedDispatcher.

OnBackInvokedInput

Provides input to a NavigationEventDispatcher by registering an OnBackInvokedCallback to the passed in onBackInvokedDispatcher.

OnBackInvokedOverlayInput

Provides input to a NavigationEventDispatcher by registering an OnBackInvokedCallback with the OnBackInvokedDispatcher.PRIORITY_OVERLAY priority to onBackInvokedDispatcher.

ViewTreeNavigationEventDispatcherOwner
NavigationEventInfo.None

A default used when no specific information is associated with a navigation event.

NavigationEventTransitionState.Idle

Represents the state where no navigation gesture is currently in progress.