EventBus3.0源碼分析

EventBus3.0源碼分析 基本使用方式: 1、build中依賴,直接使用 implementation 'org.greenrobot:eventbus:3.0.0' 2、在需要接收事件的Fragment或者Activity或者View中註冊,並且加入訂閱方法,在onDestroy中進行解除註冊 ① EventBus.getDefault().register(this); ② @Subsc
相關文章
相關標籤/搜索