Returns the sum of all the samples that match the query and that were created by the specified source.
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
A data source from the statistics object’s
If both the
cumulativeSum option and the
separateBySource option were set, this method returns a quantity object. This object contains the sum of all the samples that match the query and were created by the specified source. If the statistics options were not both set, this method returns