Class ModuleEvent

java.lang.Object
io.appmetrica.analytics.ModuleEvent

public final class ModuleEvent extends Object
Custom event parameters.
  • Method Details

    • getType

      public int getType()
      Returns:
      event type
    • getName

      @Nullable public String getName()
      Returns:
      event name
    • getValue

      @Nullable public String getValue()
      Returns:
      event value
    • getServiceDataReporterType

      public int getServiceDataReporterType()
      Returns:
      the way this event will be tracked
    • getEnvironment

      @Nullable public Map<String,Object> getEnvironment()
      Returns:
      event environment
    • getExtras

      @Nullable public Map<String,byte[]> getExtras()
      Returns:
      event extras
    • getAttributes

      @Nullable public Map<String,Object> getAttributes()
      Returns:
      event attributes
    • newBuilder

      public static ModuleEvent.Builder newBuilder(int type)
      Creates new instance of ModuleEvent.Builder.
      Parameters:
      type - event type
      Returns:
      instance of ModuleEvent.Builder
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object