I need to pass a data model from one fragment to another via implicit deeplink, but I didn't find a way how to do it. I only found smth like this:
val request = NavDeepLinkRequest.Builder
.fromUri("android-app://androidx.navigation.app/profile".toUri())
.build()
findNavController().navigate(request)
But it has no method to pass a bundle/model or smth like that. Can anyone help ?
EDIT. My case: I need to navigate to the fragment of app module from the fragment of my feature module . That fragment of app module accepts certain data model. I couldn't make dependency to app module, so I don't have direct access to that fragment. Thats why I need implicit deeplink to navigate, and I need to pass a data model.
About anti-pattern, its a huge project and that fragment is used in many places, so I can't change that.