Enumeration

HKUpdateFrequency

Constants that determine how often the system will launch your app in response to changes to HealthKit data.

Declaration

typedef enum HKUpdateFrequency : NSInteger {
    ...
} HKUpdateFrequency;

Overview

For more information, see HKObserverQuery.

Topics

Constants

HKUpdateFrequencyImmediate

The system launches your app every time it detects a change.

HKUpdateFrequencyHourly

The system launches your app at most once an hour in response to changes.

HKUpdateFrequencyDaily

The system launches your app at most once a day in response to changes.

HKUpdateFrequencyWeekly

The system launches your app at most once per week in response to changes.

See Also

Managing Background Delivery

- enableBackgroundDeliveryForType:frequency:withCompletion:

Enables the background delivery of updates.

- disableBackgroundDeliveryForType:withCompletion:

Disables background deliveries of update notifications for the specified data type.

- disableAllBackgroundDeliveryWithCompletion:

Disables all background deliveries of update notifications.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software