eucalypto / learn

These are projects that help me learn
0 stars 0 forks source link

Communicate Events between Fragment and ViewModel #28

Open eucalypto opened 3 years ago

eucalypto commented 3 years ago

The Fragment as the UI controller receives user input events. But you usually want to handle them in the view model. And then you want to notify the UI controller of the change so that it can do things like navigate.

How to best implement this communication?

Here are interesting resources: