One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKObjectType

class · iOS 8.0+ · SDK 27.1

class HKObjectType

Members (17)

static · iOS 9.3+

activitySummaryType

TypeScript
static activitySummaryType(): HKActivitySummaryType
Swift declaration
class func activitySummaryType() -> HKActivitySummaryType
static · iOS 13.0+

audiogramSampleType

TypeScript
static audiogramSampleType(): HKAudiogramSampleType
Swift declaration
class func audiogramSampleType() -> HKAudiogramSampleType
static · iOS 8.0+ · Deprecated in iOS 100000.0

categoryType

TypeScript
static categoryType(identifier: HKCategoryTypeIdentifier): (HKCategoryType) | null
Swift declaration
class func categoryType(forIdentifier identifier: HKCategoryTypeIdentifier) -> HKCategoryType?
static · iOS 8.0+ · Deprecated in iOS 100000.0

characteristicType

TypeScript
static characteristicType(identifier: HKCharacteristicTypeIdentifier): (HKCharacteristicType) | null
Swift declaration
class func characteristicType(forIdentifier identifier: HKCharacteristicTypeIdentifier) -> HKCharacteristicType?
static · iOS 12.0+ · Deprecated in iOS 100000.0

clinicalType

TypeScript
static clinicalType(identifier: HKClinicalTypeIdentifier): (HKClinicalType) | null
Swift declaration
class func clinicalType(forIdentifier identifier: HKClinicalTypeIdentifier) -> HKClinicalType?
static · iOS 8.0+ · Deprecated in iOS 100000.0

correlationType

TypeScript
static correlationType(identifier: HKCorrelationTypeIdentifier): (HKCorrelationType) | null
Swift declaration
class func correlationType(forIdentifier identifier: HKCorrelationTypeIdentifier) -> HKCorrelationType?
static · iOS 10.0+ · Deprecated in iOS 100000.0

documentType

TypeScript
static documentType(identifier: HKDocumentTypeIdentifier): (HKDocumentType) | null
Swift declaration
class func documentType(forIdentifier identifier: HKDocumentTypeIdentifier) -> HKDocumentType?
static · iOS 14.0+

electrocardiogramType

TypeScript
static electrocardiogramType(): HKElectrocardiogramType
Swift declaration
class func electrocardiogramType() -> HKElectrocardiogramType
static · iOS 26.0+

medicationDoseEventType

TypeScript
static medicationDoseEventType(): HKMedicationDoseEventType
Swift declaration
class func medicationDoseEventType() -> HKMedicationDoseEventType
static · iOS 8.0+ · Deprecated in iOS 100000.0

quantityType

TypeScript
static quantityType(identifier: HKQuantityTypeIdentifier): (HKQuantityType) | null
Swift declaration
class func quantityType(forIdentifier identifier: HKQuantityTypeIdentifier) -> HKQuantityType?
static · iOS 11.0+

seriesType

TypeScript
static seriesType(identifier: string): (HKSeriesType) | null
Swift declaration
class func seriesType(forIdentifier identifier: String) -> HKSeriesType?
static · iOS 18.0+

stateOfMindType

TypeScript
static stateOfMindType(): HKStateOfMindType
Swift declaration
class func stateOfMindType() -> HKStateOfMindType
static · iOS 26.0+

userAnnotatedMedicationType

TypeScript
static userAnnotatedMedicationType(): HKUserAnnotatedMedicationType
Swift declaration
class func userAnnotatedMedicationType() -> HKUserAnnotatedMedicationType
static · iOS 16.0+

visionPrescriptionType

TypeScript
static visionPrescriptionType(): HKPrescriptionType
Swift declaration
class func visionPrescriptionType() -> HKPrescriptionType
static · iOS 8.0+

workoutType

TypeScript
static workoutType(): HKWorkoutType
Swift declaration
class func workoutType() -> HKWorkoutType
method · iOS 16.0+

requiresPerObjectAuthorization

TypeScript
requiresPerObjectAuthorization(): boolean
Swift declaration
func requiresPerObjectAuthorization() -> Bool
get · iOS 8.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKObjectType.init()

inherited init: clang: 'init' is unavailable

All HealthKit types →