Android-ViewModelBinding
Android-ViewModelBinding copied to clipboard
Provide API for making navigation via ViewInterface
Hi Jakub!
After some research of your lib, i realized that navigation between screens is not very handy when it done from viewModel (especially when navigation step contains transitions/animations, better to leave this stuff inside activity/fragment). It would be nice to have ability to navigate via ViewInterface. Something like ViewInterface.navigate(params)
. And then implement navigate method in the Activity/Fragment/Dialog etc.
Please take a look on this proof of concept
https://github.com/deviant-studio/Android-ViewModelBinding/commit/79e66dfb9632bf1dcc80d92d6bfd4dcb59888da8
Is it worth of pull request?