Class

HKCategoryType

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

Declaration

class HKCategoryType : HKSampleType

Overview

The HKCategoryType class is a concrete subclass of the HKObjectType class. To create a category type instance, use the object type’s categoryType(forIdentifier:) convenience method.

Use category types to:

  • Request permission to read or write matching quantity samples.

  • Create and share matching quantity samples.

  • Query for matching quantity samples.

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 HKCorrelationType

A type that identifies samples that group multiple subsamples.

class HKActivitySummaryType

A type that identifies activity summary objects.

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.