Android APIs
public class

AppMeasurement

extends Object
java.lang.Object
   ↳ com.google.android.gms.measurement.AppMeasurement

Class Overview

Provides app measurement capability.

Summary

Public Methods
static AppMeasurement getInstance(Context context)
Returns the singleton AppMeasurement interface.
void setMeasurementEnabled(boolean enabled)
Sets whether measurement and reporting are enabled for this app on this device.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static AppMeasurement getInstance (Context context)

Returns the singleton AppMeasurement interface.

Parameters
context the context used to initialize AppMeasurement.

public void setMeasurementEnabled (boolean enabled)

Sets whether measurement and reporting are enabled for this app on this device. By default they are enabled.

Parameters
enabled whether measurement and reporting are enabled for this app on this device