Instance Property

identifier

A unique string identifying the HealthKit object type.

Declaration

var identifier: String { get }

Discussion

Each object type has a unique identifier. The identifiers can be grouped into four categories: category identifiers, characteristic identifiers, correlation identifiers, and quantity identifiers. Each group of identifiers is associated with a different concrete subclass of HKObjectType. For a complete list of type identifiers, see HealthKit Constants.