Global Variable

HKPredicateKeyPathMostRecentEndDate

The key path for the end date of the sample’s most recent quantity.

Declaration

let HKPredicateKeyPathMostRecentEndDate: String

Discussion

Use this constant whenever you want to include a sample’s quantity in a predicate format string. Add a %K placeholder to the format string, and then pass this constant as an argument.

See Also

Predicate Key Paths

let HKPredicateKeyPathMin: String

The key path for the sample’s minimum quantity.

let HKPredicateKeyPathAverage: String

The key path for the sample’s average quantity.

let HKPredicateKeyPathMax: String

The key path for the sample’s maximum quantity.

let HKPredicateKeyPathMostRecent: String

The key path for the sample’s most recent quantity.

let HKPredicateKeyPathMostRecentStartDate: String

The key path for the start date of the sample’s most recent quantity.

let HKPredicateKeyPathMostRecentDuration: String

A key path for the duration of the sample’s most recent quantity.