<How to update livedata through a method with mult...
# stackoverflow
u
How to update livedata through a method with multiple parameters I have this livedata "events" that should be updated if the method loadEvents() gets fired. The thing is, I need to pass many different parameters to that method. If I call this method and then observe the data, the data is null. How can I do this? Viewmodel: private val _events = MutableLiveData() val events: LiveData get() = _events fun loadEvents( dateTo: String, dateFrom: String?, dateTime: String?,...