HitBuilders.EventBuilder

public static class HitBuilders.EventBuilder extends HitBuilder<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 Constructor Summary

HitBuilders.EventBuilder(String category, String action)
Convenience constructor for creating an event hit.

Public Method Summary

HitBuilders.EventBuilder
HitBuilders.EventBuilder
setCategory(String category)
HitBuilders.EventBuilder
HitBuilders.EventBuilder
setValue(long value)

Inherited Method Summary

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)