Hide

HitBuilders.EventBuilder

public static class HitBuilders.EventBuilder extends HitBuilder<HitBuilders.EventBuilder>
java.lang.Object
   ↳ com.google.android.gms.analytics.HitBuilders.HitBuilder<com.google.android.gms.analytics.HitBuilders.EventBuilder>
     ↳ com.google.android.gms.analytics.HitBuilders.EventBuilder

A Builder object to build event hits. For meaningful data, event hits should contain at least the event category and the event action.

Public Constructors

public HitBuilders.EventBuilder ()

public HitBuilders.EventBuilder (String category, String action)

Convenience constructor for creating an event hit. Additional fields can be specified using the setter methods.

Parameters
category Category in which the event will be filed. Example: "Video"
action Action associated with the event. Example: "Play"

Public Methods

public HitBuilders.EventBuilder setAction (String action)

public HitBuilders.EventBuilder setCategory (String category)

public HitBuilders.EventBuilder setLabel (String label)

public HitBuilders.EventBuilder setValue (long value)