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!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.