IPC in Android using GreenRobot eventbus

前端 未结 3 1870
南笙
南笙 2021-01-05 02:28

I need to communicate with a remote service, using (greenrobot) EventBus. Unfortunately, it does not seem to work with IPC. Looking at the code, I don\'t see a workaround ei

3条回答
  •  Happy的楠姐
    2021-01-05 02:47

    Another library that follows the EventBus syntax more closely is HermesEventBus. It supports IPC (and intra process) both.

    Although they should have just derived from EventBus, so that we can just inject EventBus object (which is actually a HermesEventBus), and not have to update code everywhere. https://github.com/eleme/HermesEventBus

提交回复
热议问题