Annotation Interface Subscribe


@Retention(RUNTIME) @Target(METHOD) public @interface Subscribe
Marks a method as an event subscriber for a specific event. The annotation takes a String as a parameter to specify for which event the method is subscribing. Additionally, it allows setting a priority for the event listener using the Priority enum
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • priority

      Priority priority
      Default:
      NORMAL