com.google.android.gms.fitness.data

Contains the Google Fit data model.

Annotations

Goal.ObjectiveType Type of a goal's objective. 
Goal.Recurrence.RecurrenceUnit Unit of a recurrence. 

Classes

BleDevice Representation of a BLE Device (such as a heart rate monitor) that broadcasts information about its on board sensors. 
Bucket A bucket represents a time interval over which aggregated data is computed. 
DataPoint Represents a single data point in a data type's stream from a particular data source
DataSet Represents a fixed set of data points in a data type's stream from a particular data source
DataSource Definition of a unique source of sensor data. 
DataSource.Builder A builder that can be used to construct new data source objects. 
DataType The data type defines the schema for a stream of data being collected by, inserted into, or queried from Google Fit. 
DataUpdateNotification Captures the information needed to identify updates to Google Fitness Store data. 
Device Representation of an integrated device (such as a phone or a wearable) that can hold sensors. 
Field A field represents one dimension of a data type. 
Goal A fitness goal, which users create in Google Fit. 
Goal.DurationObjective A duration objective, which uses duration time of activities to determine whether the goal is met. 
Goal.FrequencyObjective A frequency objective, which uses the number of activity segments to determine whether the goal is met. 
Goal.MetricObjective A metric objective, which uses a metric value to determine whether the goal is met. 
Goal.Recurrence A recurrence period of a recurring goal. 
HealthDataTypes Predefined health-specific data types. 
HealthFields Predefined fields only used by health-specific data types in HealthDataTypes
Session A Session represents a time interval with associated metadata. 
Session.Builder Builder used to create new Sessions. 
Subscription Subscription for persistent storage of data from a given data source or for a given data type
Value Holder object for the value of a single field in a data point
WorkoutExercises Constants representing different exercises, such as weight lifting exercises, strength training exercises, and cardiovascular exercises. 

Exceptions

Goal.MismatchedGoalException Exception thrown by getMetricObjective(), getDurationObjective(), getFrequencyObjective() if the goal doesn't match the requested objective type.