EventBus使用

一、依賴包post compile 'org.greenrobot:eventbus:3.0.0' 2.在要接受消息的地方進行註冊 EventBus.getDefault().register(this); 3.進行消息接受並處理,方法必須爲publicthis @Subscribe(threadMode = ThreadMode.POSTING) public void getMessa
相關文章
相關標籤/搜索