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

# AppMeasurement

extends Object

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

This class is deprecated.
Use `FirebaseAnalytics` instead.

## Summary

Public Methods
static AppMeasurement | getInstance(Context context) This method is deprecated. Use `getInstance(Context)` instead.
void | setMeasurementEnabled(boolean enabled) This method is deprecated. Please use `setAnalyticsCollectionEnabled(boolean)` instead.

[Expand] Inherited Methods
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 Methods

#### public static AppMeasurement getInstance (Context context)

This method is deprecated.
Use `getInstance(Context)` instead.

#### public void setMeasurementEnabled (boolean enabled)

This method is deprecated.
Please use `setAnalyticsCollectionEnabled(boolean)` instead.

Sets whether analytics collection is enabled for this app on this device. This setting is persisted across app sessions. By default it is enabled.

##### Parameters

enabled | Whether analytics collection is enabled for this app on this device.