<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRElectrocardiogramSession",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRElectrocardiogramSession"
  },
  "title" : "SRElectrocardiogramSession"
}
-->

# SRElectrocardiogramSession

An object that represents ECG data that a device records during a period of time.

```
class SRElectrocardiogramSession
```

## Topics

### Getting session information

[`var identifier: String`](/documentation/SensorKit/SRElectrocardiogramSession/identifier)

A unique identifier for the ECG session.

[`var sessionGuidance: SRElectrocardiogramSession.SessionGuidance`](/documentation/SensorKit/SRElectrocardiogramSession/sessionGuidance-swift.property)

The type of session used to record the sample.

[`enum SessionGuidance`](/documentation/SensorKit/SRElectrocardiogramSession/SessionGuidance-swift.enum)

The type of session guidance used to record a ECG sample.

[`var state: SRElectrocardiogramSession.State`](/documentation/SensorKit/SRElectrocardiogramSession/state-swift.property)

The state of the session used to record the sample.

[`enum State`](/documentation/SensorKit/SRElectrocardiogramSession/State-swift.enum)

The state of a session used to record a ECG sample.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)