mediatorlivedata

Observing MediatorLiveData Issue

穿精又带淫゛_ 提交于 2021-02-11 12:32:23
问题 I have the following LiveData variables in my ViewModel (simplified example): val currentUser : LiveData<UserObject> val allSites : LiveData<ArrayList<SiteObject>> val filterSitesForUser : LiveData<Boolean> val orderSitesByField : LiveData<String> val orderSitesDirection : LiveData<Query.Direction> val searchFilterSitesText : LiveData<String> I'm trying to use MediatorLiveData to have one 'stream' of data connecting to my RecyclerView . I therefore also have the following code in the