AriesHoo / FastLib

一个Android项目级快速开发框架,节约大部分写常用功能时间以实现更多项目业务功能及体验上的优化。使用说明见wiki
https://github.com/AriesHoo/FastLib/wiki
Apache License 2.0
492 stars 95 forks source link

eventbus 使用 #80

Closed yanshangluobai closed 3 years ago

yanshangluobai commented 3 years ago

FastLib:2.4.0版本导入 implementation 'org.greenrobot:eventbus:3.2.0',eventbus 事件接受不到 image

AriesHoo commented 3 years ago

这个eventBus传递事件貌似不是你这种写法 https://github.com/greenrobot/EventBus

AriesHoo commented 3 years ago

我刚按照EventBus官网说明测试了下,正常的,你参考官网测试下,FastLib只做了EventBus初始化

yanshangluobai commented 3 years ago

我换成了androidEventBus,post可以接收到事件,postSticky就接收不到,两者接收方法有什么不同吗?使用的默认的tag image

eventbus 大概不能直接传递数据,只能用类传递