PlatformHealthSources.Keys


public class PlatformHealthSources.Keys


Data sources keys for platform health sources.

Summary

Constants

static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloat>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_CALORIES

The data source key for daily calories (kcal) data from platform health sources.

static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloat>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_DISTANCE_METERS

The data source key for daily distance data (in meters) from platform health sources.

static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloat>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_FLOORS

The data source key for daily floors data from platform health sources.

static final @NonNull PlatformDataKey<DynamicBuilders.DynamicInt32>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_STEPS

The data source key for daily step count data from platform health sources.

static final @NonNull PlatformDataKey<PlatformHealthSources.DynamicHeartRateAccuracy>
@RequiresPermission(value = Manifest.permission.BODY_SENSORS)
HEART_RATE_ACCURACY

The data source key for heart rate sensor accuracy data from platform health sources.

static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloat>
@RequiresPermission(value = Manifest.permission.BODY_SENSORS)
HEART_RATE_BPM

The data source key for heart rate bpm data from platform health sources.

Constants

DAILY_CALORIES

Added in 1.0.0
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
public static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloatDAILY_CALORIES

The data source key for daily calories (kcal) data from platform health sources. This is the total number of kilocalories over a day (including both BMR and active calories) and it resets when 00:00 is reached (in whatever is the timezone set at that time). This can result in the DAILY period being greater than or less than 24 hours when the timezone of the device is changed.

DAILY_DISTANCE_METERS

Added in 1.0.0
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
public static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloatDAILY_DISTANCE_METERS

The data source key for daily distance data (in meters) from platform health sources. This is the total distance over a day and it resets when 00:00 is reached (in whatever is the timezone set at that time). This can result in the DAILY period being greater than or less than 24 hours when the timezone of the device is changed.

DAILY_FLOORS

Added in 1.0.0
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
public static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloatDAILY_FLOORS

The data source key for daily floors data from platform health sources. This is the total number of floors climbed over a day and it resets when 00:00 is reached (in whatever is the timezone set at that time). This can result in the DAILY period being greater than or less than 24 hours when the timezone of the device is changed.

DAILY_STEPS

Added in 1.0.0
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
public static final @NonNull PlatformDataKey<DynamicBuilders.DynamicInt32DAILY_STEPS

The data source key for daily step count data from platform health sources. This is the total step count over a day and it resets when 00:00 is reached (in whatever is the timezone set at that time). This can result in the DAILY period being greater than or less than 24 hours when the timezone of the device is changed.

HEART_RATE_ACCURACY

Added in 1.0.0
@RequiresPermission(value = Manifest.permission.BODY_SENSORS)
public static final @NonNull PlatformDataKey<PlatformHealthSources.DynamicHeartRateAccuracyHEART_RATE_ACCURACY

The data source key for heart rate sensor accuracy data from platform health sources. The accuracy value is one of HEART_RATE_ACCURACY_* constants.

HEART_RATE_BPM

Added in 1.0.0
@RequiresPermission(value = Manifest.permission.BODY_SENSORS)
public static final @NonNull PlatformDataKey<DynamicBuilders.DynamicFloatHEART_RATE_BPM

The data source key for heart rate bpm data from platform health sources.