Instance Method

mostRecentQuantity(for:)

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

Declaration

func mostRecentQuantity(for source: HKSource) -> HKQuantity?

See Also

Getting the Most Recent Quantity

func mostRecentQuantity() -> HKQuantity?

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

func mostRecentQuantityDateInterval() -> DateInterval?

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

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 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