Arkadii Ivanov
06/15/2025, 7:06 PMNavigationEventDispatcher
is a successor to OnBackPressedDispatcher
?Chrimaeon
06/15/2025, 7:33 PMArkadii Ivanov
06/15/2025, 7:40 PMChrimaeon
06/15/2025, 7:50 PMIan Lake
06/15/2025, 8:34 PM• The androidx.navigationevent library provides a KMP-first API for handling system back as well as Predictive Back. The NavigationEventDispatcher serves as a common APIs for registering one or more NavigationEventCallback instances for receiving system back events.
• This layer sits below the previously released APIs in androidx.activity and aims to be a less opinionated replacement for using the Activity APIs in higher level components or directly using the Android framework OnBackInvokedDispatcher APIs. The androidx.activity APIs have been rewritten on top of the Navigation Event APIs as part of Activity 1.12.0-alpha01.
Arkadii Ivanov
06/15/2025, 9:12 PM