EventBus icon indicating copy to clipboard operation
EventBus copied to clipboard

Support custom subscribe annotation

Open shenghaiyang opened this issue 6 years ago • 3 comments

Support custom subscribe annotation, for example:

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@Subscribe(threadMode = ThreadMode.BACKGROUND)
public @interface MySubscribe{}

shenghaiyang avatar May 10 '19 08:05 shenghaiyang

Why you need todefine yourself annotation?

ctlove0523 avatar May 20 '20 13:05 ctlove0523

I would also find this useful. This article describes the reason quite well.

sitepark-veltrup avatar Jul 26 '22 06:07 sitepark-veltrup

is it necessary for developers? it so ... we can let developers write an self defined annotation extends @subscribe and check the necessary variables on self defined annotation @greenrobot-team

tomridder avatar Mar 16 '23 09:03 tomridder