Type Method


Returns the shared series type for the provided identifier.


class func seriesType(forIdentifier identifier: String) -> HKSeriesType?



A series type identifier. In iOS 11 and watchOS 4, there is only one series type identifier: HKWorkoutRouteTypeIdentifier.

Return Value

The shared HKSeriesType instance based on the provided identifier.


This method returns an instance of the HKSeriesType concrete subclass. HealthKit uses series types to represent samples that store a series of items. You can’t directly instantiate these samples; instead, use a HKSeriesBuilder subclass to create them. Use series types to ask for permission to read series data from the HealthKit store.

See Also