

To record data, use the Recording API toĬreate a subscription for each data type you want to record.How you invoke the Fitness APIs with the data type depends on what you want to accomplish: On Android, data types are defined as public fields of theĬlass. Using data types Note: Time ranges for data points from the same stream shouldn't overlap! If theyĭo, data from the overlapping period will be dropped which could causeĭiscrepancies between expected and displayed values.

For more information, seeĬustom data types. Only the app that defines theĭata type can read and write data of this type. Private custom data types Custom data types defined by a specific app. Aggregate data types Data types to read health and wellness information aggregated by time orĪctivity type. Health data types Data types provided by the platform that have restricted access due to AnyĪpp can request the relevant permissions to read and write to these data types,Įxcept for a few location data types which can only be read by the app that Health and wellness data, including fitness activity, sleep and nutrition. These data types capture instant readings for Google Fit has these data types: Public data types Standard data types provided by the platform have the 'com.google' prefix. Google Fit also lets you define new data types. Points that represent instantaneous observations include a timestamp, and points ofĪn aggregate data type also include the start time for the interval. Data points consist of values for the fields of a data type and timestamp information. Google Fit defines data types for instantaneous observations and data types for aggregateĭata. An aggregate with statistics over a time interval.An instantaneous reading or observation.Google Fit provides a set of health and wellness data types under the com.google namespace.ĭata types define the format of the values inside data points.
