electrocardiogram
A sensor that streams sample ECG sensor data.
Declaration
static let electrocardiogram: SRSensorDiscussion
The sample for this sensor is an array of SRElectrocardiogramSample objects.
You need to provide a reason to record electrocardiogram (ECG) data by adding the SRSensorUsageECG dictionary to the NSSensorKitUsageDetail key in the information property list.
You also need to add the ecg key to the com.apple.developer.sensorkit.reader.allow entitlement, as in:
<plist version="1.0">
<dict>
<key>com.apple.developer.sensorkit.reader.allow</key>
<array>
<string>ecg</string>
</array>
</dict>
</plist>