EnergyData

data class EnergyData : SampleData

Sample data with information of energy consumed and burned during measurement period.

Properties

Link copied to clipboard

amount of consumed kcal

Link copied to clipboard

amount of burned kcal

Link copied to clipboard
open override val timestampEnd: Long

End of the sample in UNIX-timestamp.

Link copied to clipboard
open override val timestampStart: Long

Beginning of the sample in UNIX-timestamp.

Extensions

Link copied to clipboard
fun SampleData.getSampleDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns sample duration in specified units. Default units: TimeUnit.SECONDS.