06.EventBus扩展

一、说明 google eventbus有一个缺点:只能通过listener的方法参数类型不同,来分发事件(eventbus上无topic,不能在相同事件类型时,向event的某个topic上发送事件,对此topic感兴趣的listener才收到这个事件,注册其他topic的listener不接收) 逻辑2,3,4都关注某一类型消息,但是逻辑1发送此类型消息到topic1,只有逻辑2,3收到事件,
相关文章
相关标签/搜索