Global Variable

HKPredicateKeyPathMax

The key path for the sample’s maximum quantity.

Declaration

NSString *const HKPredicateKeyPathMax;

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.

HKPredicateKeyPathAverage

The key path for the sample’s average 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.