Type Method

activitySummaryType()

Returns the shared HKActivitySummaryType object.

Declaration

class func activitySummaryType() -> HKActivitySummaryType

Return Value

The shared HKActivitySummaryType instance.

Discussion

This method returns an instance of the HKActivitySummaryType concrete subclass. Use this type to request permission to read HKActivitySummary objects from the HealthKit store.

See Also

Creating Subclasses

class func categoryType(forIdentifier: HKCategoryTypeIdentifier)

Returns the shared HKCategoryType object for the provided identifier.

class func characteristicType(forIdentifier: HKCharacteristicTypeIdentifier)

Returns the shared HKCharacteristicType object for the provided identifier.

class func documentType(forIdentifier: HKDocumentTypeIdentifier)

Returns the shared HKDocumentType object for the provided identifier.

class func quantityType(forIdentifier: HKQuantityTypeIdentifier)

Returns the shared HKQuantityType object for the provided identifier.

class func workoutType()

Returns the shared HKWorkoutType object.