Annotation Interface Subscribe


@Retention(RUNTIME) @Target(METHOD) @Obsolete public @interface Subscribe
Annotate a method as a subscriber to an event.
The method should take one parameter, a class which extends Event and return void.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Priority for this event handler.