hehonghui / hehonghui/AndroidEventBus
能够支持 Sticky方式吗?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 390
- PR merge metrics
- No merged PRs in 30d
Description
greenrobot eventbus 支持sticky,
举个例子,我把网络状态广播改成 eventbus方式,
在Application 中注册广播接收判断网络改变, 再post出去,
当前acitivity 创建时,可能早已经post了,
因此该 activity就接收不到, 之前网络连接上的事件,
当然我也可以在oncreate时,判断一下网络,
再主动 调用一下本来由于接收post 事件要调用的函数
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Application network broadcast registration, EventBus post calls, and Activity onCreate registration described in the issue. Determine how an event posted before Activity registration could be retained and delivered to that Activity, then verify the behavior with a small Android usage scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100