How to call function after updating data in room persistence library

前端 未结 0 1205
执念已碎
执念已碎 2020-12-31 15:24

this is my function inside viewModel class :

fun updateMenu(menu: Menu) = viewModelScope.launch {
    menuDao.update(menu) // updating menu to database
    to         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题