DataTypes

object DataTypes
kotlin.Any
   ↳ androidx.health.services.client.data.DataTypes

Helper class to facilitate working with DataTypes.

Summary

Public methods
Boolean

Check if a DataType will be aggregated as a cumulative value.

Boolean

Check if a DataType will be aggregated as a statistical value.

Public methods

isCumulativeDataType

@JvmStatic fun isCumulativeDataType(dataType: DataType): Boolean

Check if a DataType will be aggregated as a cumulative value.

Note: DataType.SWIMMING_LAP_COUNT already represents the total lap count, so it is not considered a cumulative data type.

isStatisticalDataType

@JvmStatic fun isStatisticalDataType(dataType: DataType): Boolean

Check if a DataType will be aggregated as a statistical value.