Class

HKActivitySummaryType

A type that identifies activity summary objects.

Declaration

class HKActivitySummaryType : HKObjectType

Overview

The HKActivitySummaryType class is a concrete subclass of the HKObjectType class. To create an activity summary type instance, use the object type’s activitySummaryType() convenience method.

You only use activity summary types to request permission to read HKActivitySummary objects from the HealthKit store. 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 cannot save them to the HealthKit store. However, any workouts that you save to the HealthKit store may affect that day’s summary. For more information, see Filling the Rings.

Using Activity Summary Types

Like many HealthKit classes, activity summary types are not extensible and should not be subclassed.

Relationships

Inherits From

Conforms To

See Also

Type Objects

class HKCharacteristicType

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

class HKQuantityType

A type that identifies samples that store numerical values.

class HKCategoryType

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

class HKCorrelationType

A type that identifies samples that group multiple subsamples.

class HKAudiogramSampleType

A type that identifies samples that contain audiogram data.

class HKSeriesType

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

class HKObjectType

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

class HKSampleType

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

class HKClinicalType

A type that identifies samples that contain clinical record data.

class HKWorkoutType

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