raamcosta / compose-destinations

Annotation processing library for type-safe Jetpack Compose navigation with no boilerplate.
https://composedestinations.rafaelcosta.xyz
Apache License 2.0
3.23k stars 134 forks source link

Is there a way to use ResultBackNavigator in ActivityDestination? #673

Closed silverAndroid closed 2 months ago

silverAndroid commented 3 months ago

Based on https://composedestinations.rafaelcosta.xyz/v2/navigation/backresult, I can pass a result via ResultBackNavigator to a composable annotated with Destination.

Is there a way I can inject it to the Activity?

raamcosta commented 2 months ago

Unfortunately no. Support for activities is very shallow from official library. It's probably technically possible, but there are no plans to have this any time soon.