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
From class java.lang.Object

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)