Class

HKActivitySummaryType

A type that identifies activity summary objects.

Declaration

@interface HKActivitySummaryType : HKObjectType

Overview

Use the activity summary type to request permission to read HKActivitySummary objects from the HealthKit store. To create an activity summary type, use the HKObjectType class’s activitySummaryType convenience method.

The HKActivitySummaryType class is a concrete subclass of the HKObjectType class. Like many HealthKit classes, activity summary types aren’t extensible and you shouldn’t subclass them.

Access and Modify Activity Summaries

Any workouts that you save to the HealthKit store may affect that day’s summary. For more information, see Using Workout Samples.

To query for activity summary objects, use an HKActivitySummaryQuery. You can also create your own HKActivitySummary objects (for example, to display in an HKActivityRingView), but you can’t save them to the HealthKit store.

Relationships

Inherits From

See Also

Type Objects

HKCharacteristicType

A type that represents data that does not typically change over time.

HKQuantityType

A type that identifies samples that store numerical values.

HKCategoryType

A type that identifies samples that contain a value from a small set of possible values.

HKCorrelationType

A type that identifies samples that group multiple subsamples.

HKAudiogramSampleType

A type that identifies samples that contain audiogram data.

HKSeriesType

A type that indicates the data stored in a series sample.

HKObjectType

The abstract superclass for all classes that identify a specific type of data when working with the HealthKit store.

HKSampleType

An abstract superclass for all classes that identify a specific type of sample when working with the HealthKit store.

HKClinicalType

A type that identifies samples that contain clinical record data.

HKWorkoutType

A type that identifies samples that store information about a workout.