Instance Property

sources

An array containing all the sources contributing to these statistics.

Declaration

var sources: [HKSource]? { get }

Discussion

If the separateBySource option was specified, this property holds an array of all the sources included in the calculations. If the separateBySource option was not specified, the property contains nil.

See Also

Getting Property Data

var startDate: Date

The start of the time period included in these statistics.

var endDate: Date

The end of the time period included in these statistics.

var quantityType: HKQuantityType

The quantity type of the samples used to calculate these statistics.