Enumeration

HKUpdateFrequency

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

Overview

For more information, see HKObserverQuery.

Topics

Constants

case immediate

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

case hourly

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

case daily

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

case weekly

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

See Also

Managing Background Delivery

func disableBackgroundDelivery(for: HKObjectType, withCompletion: (Bool, Error?) -> Void)

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

func disableAllBackgroundDelivery(completion: (Bool, Error?) -> Void)

Disables all background deliveries of update notifications.