---
title: HKHealthStore
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkhealthstore
---

# HKHealthStore

The access point for all data managed by HealthKit.

## Declaration

```swift
class HKHealthStore
```

## Mentioned in

Executing Observer Queries Reading data from HealthKit

## Overview

Overview Use a HKHealthStore object to request permission to share or read HealthKit data. After you have permission, you can use the HealthKit store to save new samples to the store, or to manage the samples that your app saved. Additionally, you can use the HealthKit store to start, stop, and manage queries. For more information, see Setting up HealthKit.

## Topics

### Accessing HealthKit

- [authorizationStatus(for:)](healthkit/hkhealthstore/authorizationstatus(for:).md)
- [HKAuthorizationStatus](healthkit/hkauthorizationstatus.md)
- [getRequestStatusForAuthorization(toShare:read:completion:)](healthkit/hkhealthstore/getrequeststatusforauthorization(toshare:read:completion:).md)
- [HKAuthorizationRequestStatus](healthkit/hkauthorizationrequeststatus.md)
- [isHealthDataAvailable()](healthkit/hkhealthstore/ishealthdataavailable().md)
- [supportsHealthRecords()](healthkit/hkhealthstore/supportshealthrecords().md)
- [requestAuthorization(toShare:read:completion:)](healthkit/hkhealthstore/requestauthorization(toshare:read:completion:).md)
- [requestAuthorization(toShare:read:)](healthkit/hkhealthstore/requestauthorization(toshare:read:).md)
- [requestPerObjectReadAuthorization(for:predicate:completion:)](healthkit/hkhealthstore/requestperobjectreadauthorization(for:predicate:completion:).md)
- [handleAuthorizationForExtension(completion:)](healthkit/hkhealthstore/handleauthorizationforextension(completion:).md)
- [authorizationViewControllerPresenter](healthkit/hkhealthstore/authorizationviewcontrollerpresenter.md)

### Querying HealthKit data

- [execute(_:)](healthkit/hkhealthstore/execute(_:).md)
- [stop(_:)](healthkit/hkhealthstore/stop(_:).md)

### Reading characteristic data

- [biologicalSex()](healthkit/hkhealthstore/biologicalsex().md)
- [bloodType()](healthkit/hkhealthstore/bloodtype().md)
- [dateOfBirth()](healthkit/hkhealthstore/dateofbirth().md)
- [dateOfBirthComponents()](healthkit/hkhealthstore/dateofbirthcomponents().md)
- [fitzpatrickSkinType()](healthkit/hkhealthstore/fitzpatrickskintype().md)
- [wheelchairUse()](healthkit/hkhealthstore/wheelchairuse().md)

### Working with HealthKit objects

- [delete(_:withCompletion:)](healthkit/hkhealthstore/delete(_:withcompletion:)-78l1m.md)
- [delete(_:withCompletion:)](healthkit/hkhealthstore/delete(_:withcompletion:)-17hzm.md)
- [deleteObjects(of:predicate:withCompletion:)](healthkit/hkhealthstore/deleteobjects(of:predicate:withcompletion:).md)
- [earliestPermittedSampleDate()](healthkit/hkhealthstore/earliestpermittedsampledate().md)
- [save(_:withCompletion:)](healthkit/hkhealthstore/save(_:withcompletion:)-6fmtg.md)
- [save(_:withCompletion:)](healthkit/hkhealthstore/save(_:withcompletion:)-47iwb.md)

### Accessing the preferred units

- [preferredUnits(for:completion:)](healthkit/hkhealthstore/preferredunits(for:completion:).md)
- [preferredWorkoutZoneConfiguration(for:)](healthkit/hkhealthstore/preferredworkoutzoneconfiguration(for:).md)
- [HKUserPreferencesDidChange](foundation/nsnotification/name-swift.struct/hkuserpreferencesdidchange.md)

### Managing background delivery

- [enableBackgroundDelivery(for:frequency:withCompletion:)](healthkit/hkhealthstore/enablebackgrounddelivery(for:frequency:withcompletion:).md)
- [com.apple.developer.healthkit.background-delivery](bundleresources/entitlements/com.apple.developer.healthkit.background-delivery.md)
- [HKUpdateFrequency](healthkit/hkupdatefrequency.md)
- [disableBackgroundDelivery(for:withCompletion:)](healthkit/hkhealthstore/disablebackgrounddelivery(for:withcompletion:).md)
- [disableAllBackgroundDelivery(completion:)](healthkit/hkhealthstore/disableallbackgrounddelivery(completion:).md)

### Managing workouts

- [splitTotalEnergy(_:start:end:resultsHandler:)](healthkit/hkhealthstore/splittotalenergy(_:start:end:resultshandler:).md)
- [recoverActiveWorkoutSession(completion:)](healthkit/hkhealthstore/recoveractiveworkoutsession(completion:).md)

### Managing workout sessions

- [workoutSessionMirroringStartHandler](healthkit/hkhealthstore/workoutsessionmirroringstarthandler.md)
- [startWatchApp(with:completion:)](healthkit/hkhealthstore/startwatchapp(with:completion:).md)
- [pause(_:)](healthkit/hkhealthstore/pause(_:).md)
- [resumeWorkoutSession(_:)](healthkit/hkhealthstore/resumeworkoutsession(_:).md)

### Managing estimates

- [recalibrateEstimates(sampleType:date:completion:)](healthkit/hkhealthstore/recalibrateestimates(sampletype:date:completion:).md)

### Accessing the move mode

- [activityMoveMode()](healthkit/hkhealthstore/activitymovemode().md)
- [HKUserPreferencesDidChange](foundation/nsnotification/name-swift.struct/hkuserpreferencesdidchange.md)

### Deprecated symbols

- [add(_:to:completion:)](healthkit/hkhealthstore/add(_:to:completion:).md)
- [start(_:)](healthkit/hkhealthstore/start(_:).md)
- [end(_:)](healthkit/hkhealthstore/end(_:).md)

### Structures

- [HKHealthStore.HKUserPreferencesDidChangeMessage](healthkit/hkhealthstore/hkuserpreferencesdidchangemessage.md)

### Instance Methods

- [relateWorkoutEffortSample(_:with:activity:completion:)](healthkit/hkhealthstore/relateworkouteffortsample(_:with:activity:completion:).md)
- [unrelateWorkoutEffortSample(_:from:activity:completion:)](healthkit/hkhealthstore/unrelateworkouteffortsample(_:from:activity:completion:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Health data

- [Saving data to HealthKit](healthkit/saving-data-to-healthkit.md)
- [Reading data from HealthKit](healthkit/reading-data-from-healthkit.md)
- [Creating a Mobility Health App](healthkit/creating-a-mobility-health-app.md)
- [Data types](healthkit/data-types.md)
- [Samples](healthkit/samples.md)
- [Queries](healthkit/queries.md)
- [Visualizing HealthKit State of Mind in visionOS](healthkit/visualizing-healthkit-state-of-mind-in-visionos.md)
- [Logging symptoms associated with a medication](healthkit/logging-symptoms-associated-with-a-medication.md)
