Instance Method

mostRecentQuantity()

Returns the most recent value from all the samples that match the query.

Declaration

func mostRecentQuantity() -> HKQuantity?

See Also

Getting the Most Recent Quantity

func mostRecentQuantity(for: HKSource) -> HKQuantity?

Returns the most recent value from all the samples that match the query and were created by the specified source.

Beta
func mostRecentQuantityDateInterval() -> DateInterval?

Returns the date interval of the most recent sample that matches the query.

Beta
func mostRecentQuantityDateInterval(for: HKSource) -> DateInterval?

Returns the date interval of the most recent sample that matches the query and was created by the specified source.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software