How to dynamically pass parameters in the Android ViewModel?
In the following variables, how do I dynamically pass user.id and friend.id class WindViewModel @Inject constructor() : BaseViewModel() { val userWindList = Pager(config = pagingConfig, remoteMediator = WindRemoteMediator("userWindList", user.id, friend.id, database!!, api)) { windRepository.pagingModelList(friend.id, "userWindList") }.flow.map { pagingData -> pagingData.map { it.json.toWind() } }.cachedIn(viewModelScope) } >Solution : I am assuming you specifically mean how to… Read More How to dynamically pass parameters in the Android ViewModel?