and it has a livedata in it. How do I access the livedata in the service from the repository?
If it wasn't MVVM, I'd have just bound the service from the activity.
Hide service behind Repository interface and inject that interface to ViewModel
Обсуждают сегодня