Stylianos Gakis
12/10/2025, 11:24 AMPredictiveBackHandler in the CMP sources here, they mention that one should "Use NavigationEventHandler instead".
However I do not see a way to setup that in a CMP context while still being able to get a hold of the progress percentage of the predictive back etc.
What is it that I am missing here?Ivan Matkov
12/10/2025, 11:27 AMKonstantin Tskhovrebov
12/10/2025, 12:30 PMKonstantin Tskhovrebov
12/10/2025, 12:30 PMPredictiveBackHandler on non-android just for Nav2 iOS navigation animationKonstantin Tskhovrebov
12/10/2025, 12:31 PMStylianos Gakis
12/10/2025, 12:49 PMPredictiveBackHandler since we're using Nav2 already anyway.
And then wait for CMP 1.10 to drop which will have support for predictive back using the new APIs and migrate to that?
When that happens, I will assume that you will want it to work with both nav2 and nav3 right?Konstantin Tskhovrebov
12/10/2025, 12:50 PMPredictiveBackHandler is migrated to NavigationEvent alreadyStylianos Gakis
12/10/2025, 12:51 PMKonstantin Tskhovrebov
12/10/2025, 12:51 PMStylianos Gakis
12/10/2025, 12:52 PMNavigationEvent internally?Stylianos Gakis
12/10/2025, 12:53 PM@Deprecated("Use NavigationEventHandler instead") notice at the top so I came here asking 😄Konstantin Tskhovrebov
12/10/2025, 12:56 PMKonstantin Tskhovrebov
12/10/2025, 12:56 PMStylianos Gakis
12/10/2025, 1:03 PMIan Lake
12/10/2025, 2:34 PMIan Lake
12/10/2025, 2:36 PMrememberNavigationEventState(), pass that to NavigationBackHandler to get completion signals, then read the transitionState directly to get Compose State for the progress, etc.Stylianos Gakis
12/10/2025, 9:59 PMIan Lake
12/10/2025, 10:56 PMStylianos Gakis
12/11/2025, 10:15 AMNavigationEventHandler function would go a long way. Being linked to that as a deprecation replacement is good, but then without for example knowing about this m3 impl, I don't think I would've easily (if ever) figured it out myself.Konstantin Tskhovrebov
12/15/2025, 6:11 PMIan Lake
12/15/2025, 8:27 PMtransitionState being State is that you don't need to use LaunchedEffect in many cases, since many of the APIs you'd want to trigger are state based alsoandrew
12/16/2025, 10:51 PMandrew
12/16/2025, 10:51 PM