@Target(value=METHOD)
@Retention(value=RUNTIME)
public static @interface Events.Result
Method marked with this annotation will receive results for events
with specified key on main thread.
Result can be accessed either directly as method's parameter or through
EventResult
object.
Allowed method parameters
method()
method(Event
)
method(Event
, T1, T2, ...)
method(Event
, EventResult
)
method(T1, T2, ...)
method(EventResult
)
T1, T2, ...
- corresponding types of values returned by method
marked with Events.Subscribe
annotation. Same values can be accessed using
EventResult.getResult(int)
method.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |