2

我是 Android 环境中的新手,正在尝试发布主题事件,目前使用“ EventBus ”框架,但似乎找不到这样做的选项。

例子:

假设我有一个“ConversationUpdateEvent”,但想按主题或特定对话 ID 的键触发事件。

就像是:

订阅:

Conversation conversaiton = new Conversation(String conversationId)

火:

EventBus.post(conversaiton)

只有确切对话 ID 的订阅者会收到通知

4

0 回答 0