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.

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.