Class

HKSampleType

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

Declaration

class HKSampleType : HKObjectType

Overview

The HKSampleType class is an abstract subclass of the HKObjectType class, used to represent data samples. Never instantiate an HKSampleType object directly. Instead, work with one of its concrete subclasses: HKCategoryType, HKCorrelationType, HKQuantityType or HKWorkoutType classes.

Relationships

Inherits From

Conforms To

See Also

Type Objects

class HKCharacteristicType

Characteristic types represent data that does not typically change over time.

class HKQuantityType

Quantity types identify samples that store numerical values.

class HKCategoryType

Category types identify samples that contain a value from a small set of possible values.

class HKCorrelationType

Correlation types identify samples that group multiple subsamples.

class HKActivitySummaryType

Activity summary types identify activity summary objects.

class HKSeriesType

An identifier that indicates the type for 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 HKClinicalType

Clinical types identify samples that contain clinical record data.