LiveData can not observe changes made in object by other code

前端 未结 0 608
情歌与酒
情歌与酒 2021-02-18 23:08

I have a domain object, let\'s say User:

class User(var id: String, var name: String) {

   init {
       EventBus.getDefault().register(this)
   }

         


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