Instance Method

mostRecentQuantityDateInterval(for:)

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

Declaration

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

See Also

Getting the Most Recent Quantity

func mostRecentQuantity() -> HKQuantity?

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

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.

func mostRecentQuantityDateInterval() -> DateInterval?

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