The HealthKit store acts as your link to all the data managed by HealthKit. Use a
HKHealth object to request permission to share or read HealthKit data. Once permission is granted, you can use the HealthKit store to save new samples to the store, or to manage the samples that your app has saved. Additionally, you can use the HealthKit store to start, stop, and manage queries.
- iOS 8.0+
- watchOS 2.0+
Setting Up the HealthKit Framework
You must set up the HealthKit framework before you can access data in the HealthKit store. This includes enabling the HealthKit capabilities, verifying that HealthKit is available on the device, and requesting permission to read and write data.
Like many classes in HealthKit, the
HKHealth class should not be subclassed.