Android Architecture Components by Example
James Shvarts

Hi James Shvarts! Thanks for sharing!

I have a question, how would you handle passing events to an Activity/Fragment from the ViewModel? Eg: after login() success on ViewModel tell the Activity/Fragment that it should open a new activity?

Would you use a View interface and assign/deassign it on the corresponding lifecycle events? Thanks in advance!