---
title: HKActivitySummaryQuery
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkactivitysummaryquery
---

# HKActivitySummaryQuery

A query for reading activity summary objects from the HealthKit store.

## Declaration

```swift
class HKActivitySummaryQuery
```

## Overview

Overview Activity summary query objects are mostly immutable. You can assign the query’s updateHandler property after instantiating the object, but before executing the query. All other properties must be set when you instantiate the object, and they can’t change.

## Topics

### Creating activity summary queries

- [Executing Activity Summary Queries](healthkit/executing-activity-summary-queries.md)
- [init(predicate:resultsHandler:)](healthkit/hkactivitysummaryquery/init(predicate:resultshandler:).md)

### Getting property data

- [updateHandler](healthkit/hkactivitysummaryquery/updatehandler.md)

## Relationships

### Inherits From

- [HKQuery](healthkit/hkquery.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

### Long-running queries

- [HKActivitySummaryQueryDescriptor](healthkit/hkactivitysummaryquerydescriptor.md)
- [HKAnchoredObjectQueryDescriptor](healthkit/hkanchoredobjectquerydescriptor.md)
- [HKAnchoredObjectQuery](healthkit/hkanchoredobjectquery.md)
- [HKObserverQuery](healthkit/hkobserverquery.md)
