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

Class Overview

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

Summary

Public Constructors
HitBuilders.EventBuilder()
HitBuilders.EventBuilder(String category, String action)
Convenience constructor for creating an event hit.
Public Methods
HitBuilders.EventBuilder setAction(String action)
HitBuilders.EventBuilder setCategory(String category)
HitBuilders.EventBuilder setLabel(String label)
HitBuilders.EventBuilder setValue(long value)
[Expand]
Inherited Methods
From class com.google.android.gms.analytics.HitBuilders.HitBuilder
From class java.lang.Object

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)