Contents

maximumQuantity()

Returns the maximum value from all the samples that match the query.

Declaration

func maximumQuantity() -> HKQuantity?

Return Value

If the discreteMax option was set, this method returns a quantity object containing the maximum value from all the samples matching the query; otherwise, it returns nil.

See Also

Related Documentation

Getting Statistics Data