<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKObjectType/electrocardiogramType()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKObjectType(cm)electrocardiogramType"
  },
  "title" : "electrocardiogramType()"
}
-->

# electrocardiogramType()

Returns the shared electrocardiogram type.

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

## Return Value

The shared [`HKElectrocardiogramType`](/documentation/HealthKit/HKElectrocardiogramType) instance.

## Discussion

This method returns an instance of the [`HKElectrocardiogramType`](/documentation/HealthKit/HKElectrocardiogramType) concrete subclass. Use this type to request permission to read [`HKElectrocardiogram`](/documentation/HealthKit/HKElectrocardiogram) objects from the HealthKit store.

> Note:
> You can’t request permission to share ``doc://com.apple.healthkit/documentation/HealthKit/HKActivitySummary`` objects.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)