Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# HitBuilders.TimingBuilder

extends HitBuilder<HitBuilders.TimingBuilder>

java.lang.Object
↳ | com.google.android.gms.analytics.HitBuilders.HitBuilder<com.google.android.gms.analytics.HitBuilders.TimingBuilder>
| ↳ | com.google.android.gms.analytics.HitBuilders.TimingBuilder

## Class Overview

Hit builder used to collect timing related data. For example, this hit type can be useful to measure resource load times. For meaningful data, at least the category and the value should be set before sending the hit.

## Summary

Public Constructors
| HitBuilders.TimingBuilder()
| HitBuilders.TimingBuilder(String category, String variable, long value) Convenience constructor for creating a timing hit.

Public Methods
HitBuilders.TimingBuilder | setCategory(String category)
HitBuilders.TimingBuilder | setLabel(String label)
HitBuilders.TimingBuilder | setValue(long value)
HitBuilders.TimingBuilder | setVariable(String variable)

[Expand] Inherited Methods
From class com.google.android.gms.analytics.HitBuilders.HitBuilder
HitBuilders.TimingBuilder | addImpression(Product product, String impressionList) Adds a product impression to the hit.
HitBuilders.TimingBuilder | addProduct(Product product) Adds product information to be sent with a given hit.
HitBuilders.TimingBuilder | addPromotion(Promotion promotion) Adds promotion related information to the hit.
Map<String, String> | build() Builds a `Map` of parameters and values that can be set on the `Tracker` object.
String | get(String paramName)
final HitBuilders.TimingBuilder | set(String paramName, String paramValue) Sets the value for the given parameter name.
final HitBuilders.TimingBuilder | setAll(Map<String, String> params) Adds a set of key, value pairs to the hit builder.
HitBuilders.TimingBuilder | setCampaignParamsFromUrl(String utmParams) Parses and translates utm campaign parameters to analytics campaign parameters and returns them as a map.
HitBuilders.TimingBuilder | setCustomDimension(int index, String dimension) Adds a custom dimension to the current hit builder.
HitBuilders.TimingBuilder | setCustomMetric(int index, float metric) Adds a custom metric to the current hit builder.
HitBuilders.TimingBuilder | setHitType(String hitType) Sets the type of the hit to be sent.
HitBuilders.TimingBuilder | setNewSession()
HitBuilders.TimingBuilder | setNonInteraction(boolean nonInteraction)
HitBuilders.TimingBuilder | setProductAction(ProductAction action) Sets a product action for all the products included in this hit.
HitBuilders.TimingBuilder | setPromotionAction(String action) Adds an action associated with the promotions in a given hit.
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public HitBuilders.TimingBuilder ()

#### public HitBuilders.TimingBuilder (String category, String variable, long value)

Convenience constructor for creating a timing hit. Additional fields can be specified using the setter methods.

##### Parameters

category | The type of variable being measured. Example: AssetLoader
variable | The variable being measured. Example: AssetLoader.load
value | The value associated with the variable. Example: 1000

## Public Methods

#### public HitBuilders.TimingBuilder setCategory (String category)

#### public HitBuilders.TimingBuilder setLabel (String label)

#### public HitBuilders.TimingBuilder setValue (long value)

##### Parameters

value | A timing value, in milliseconds.

#### public HitBuilders.TimingBuilder setVariable (String variable)