LiveEventBus icon indicating copy to clipboard operation
LiveEventBus copied to clipboard

跨app之间通信,第一个app发送一个消息,假如在另一个app,注册一个observeSticky,接收到消息后,需要手动取消订阅,这一个app 没有这个observe 的实例。(在两个App之间不同步这些Observe的话)该怎么移除?这个LiveEventBus 有这个功能吗?

Open memoryoverflow opened this issue 5 years ago • 1 comments

跨app之间通信,第一个app发送一个消息,假如在另一个app,注册一个observeSticky,接收到消息后,需要手动取消订阅,这一个app 没有这个observe 的实例。(在两个App之间不同步这些Observe的话)该怎么移除?这个LiveEventBus 有这个功能吗?

memoryoverflow avatar Apr 11 '20 14:04 memoryoverflow

手动取消和手动订阅需要配对使用(observeForever/removeObserver),另外没有observe 的实例是不能remove的,需要能拿到这个实例的那一端去remove

JeremyLiao avatar Apr 18 '20 01:04 JeremyLiao