@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Subscribe
Modifier and Type | Optional Element and Description |
---|---|
int |
priority
Subscriber priority to influence the order of event delivery.
|
boolean |
sticky
If true, delivers the most recent sticky event (posted with
EventBus.postSticky(Object) ) to this subscriber (if event available). |
ThreadMode |
threadMode |
public abstract ThreadMode threadMode
public abstract boolean sticky
EventBus.postSticky(Object)
) to this subscriber (if event available).public abstract int priority
ThreadMode
), higher priority subscribers will receive events before
others with a lower priority. The default priority is 0. Note: the priority does *NOT* affect the order of
delivery among subscribers with different ThreadMode
s!Available under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.