Skip to content Skip to sidebar Skip to footer

Android LiveData: Transformation SwitchMap: Apply Filter On The Original List And Show The Filtered Data

public class FlightViewModel extends BaseViewModel { private FlightRepository flightRepository; private MediatorLiveData>

Solution 1:

Please read this document and apply switchMap transformation to your source livedata. It will not alter your original source LiveData values.


Post a Comment for "Android LiveData: Transformation SwitchMap: Apply Filter On The Original List And Show The Filtered Data"