Global Variable

HKPredicateKeyPathAverage

The key path for the sample’s average quantity.

Declaration

NSString *const HKPredicateKeyPathAverage;

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

HKPredicateKeyPathMin

The key path for the sample’s minimum quantity.

HKPredicateKeyPathMax

The key path for the sample’s maximum quantity.

HKPredicateKeyPathMostRecent

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

HKPredicateKeyPathMostRecentStartDate

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

HKPredicateKeyPathMostRecentEndDate

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

HKPredicateKeyPathMostRecentDuration

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