Mark
03/01/2020, 3:54 AMMark
03/01/2020, 5:20 AMactivityViewModels
(i.e. using androidx viewmodel framework)Javier
03/01/2020, 4:41 PMMark
03/02/2020, 3:14 AMactivityViewModels
. I know this is going off-koin, but what I ended up doing was splitting the viewmodel into two parts: 1. the internal part scoped at the fragment level, not to be used outside of the library module, and 2. the external part, scoped at the activity level
The activity observes the live data in the “external” viewmodel.
Furthermore, I used this approach for the events: https://proandroiddev.com/navigation-events-in-mvvm-on-android-via-livedata-5c88ef48ee83Javier
03/02/2020, 8:39 AM