Annotation Interface EventName


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface EventName

Provides the event name for an analytics event.

If it is specified on a method, the method will be invoked to determine the name of the event. This provides a way to dynamically calculate the name of the event.

Only methods with zero parameters are supported. If there are more than one, the first one that has this annotation from the array returns by Class.getMethods() will be used.

If it is specified on a class, the value will be taken as the name of the event. This provides a quick way to specific a static name for the event.

Since:
v2.25
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Provides the event name for an analytics event.
  • Element Details

    • value

      String value
      Provides the event name for an analytics event.
      Default:
      ""