---
title: electrocardiogramType()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkobjecttype/electrocardiogramtype()
---

# electrocardiogramType()

Returns the shared electrocardiogram type.

## Declaration

```swift
class func electrocardiogramType() -> HKElectrocardiogramType
```

## Return Value

Return Value The shared HKElectrocardiogramType instance.

## Discussion

Discussion This method returns an instance of the HKElectrocardiogramType concrete subclass. Use this type to request permission to read HKElectrocardiogram objects from the HealthKit store. note: You can’t request permission to share HKActivitySummary objects.
