Contents

HKSampleType

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

Declaration

class HKSampleType

Mentioned in

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.

Topics

Checking the Duration Restriction

Checking on Recalibrating Estimates

See Also

Object type subclasses