PlatformHealthSources.Keys


class PlatformHealthSources.Keys


Data sources keys for platform health sources.

Summary

Constants

const PlatformDataKey<DynamicBuilders.DynamicFloat!>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_CALORIES

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

const 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.

const PlatformDataKey<DynamicBuilders.DynamicFloat!>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_FLOORS

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

const PlatformDataKey<DynamicBuilders.DynamicInt32!>
@RequiresPermission(value = Manifest.permission.ACTIVITY_RECOGNITION)
DAILY_STEPS

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

const 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.

const 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)
const val DAILY_CALORIESPlatformDataKey<DynamicBuilders.DynamicFloat!>

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)
const val DAILY_DISTANCE_METERSPlatformDataKey<DynamicBuilders.DynamicFloat!>

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)
const val DAILY_FLOORSPlatformDataKey<DynamicBuilders.DynamicFloat!>

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)
const val DAILY_STEPSPlatformDataKey<DynamicBuilders.DynamicInt32!>

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)
const val HEART_RATE_ACCURACYPlatformDataKey<PlatformHealthSources.DynamicHeartRateAccuracy!>

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)
const val HEART_RATE_BPMPlatformDataKey<DynamicBuilders.DynamicFloat!>

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