Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poststick不起作用,原因是代码被注释了,请释放 #57

Open
yurenmatou opened this issue Aug 15, 2018 · 3 comments
Open

poststick不起作用,原因是代码被注释了,请释放 #57

yurenmatou opened this issue Aug 15, 2018 · 3 comments

Comments

@yurenmatou
Copy link

image

@shinobu59
Copy link

shinobu59 commented Oct 25, 2018

sticky事件是可以用的具体如下:
注册时使用
image

发送时使用
image

其余的和直接post用法一样,Sticky事件消耗完需要手动清除掉,不然会重复调用

image

@bigananas
Copy link

 * 发送黏性消息事件,指定tag (每注册一次就能接受到一次,而且每次要清除栈否则会接受多个)
 * EventBus.getDefault().registerSticky(this);
 * EventBus.getDefault().removeStickyEvent(EventEntity.DiySetPreEntity.class, EventBusTags.DIY_SET_PREVIEW);

@is1988
Copy link

is1988 commented Mar 3, 2023

sticky事件是可以用的具体如下: 注册时使用 image

发送时使用 image

其余的和直接post用法一样,Sticky事件消耗完需要手动清除掉,不然会重复调用

image

我是按照这样写了 但是只有第一次起作用,后面就失效了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants