photoplethysmogram
A sensor that streams sample PPG sensor data.
Declaration
static let photoplethysmogram: SRSensorDiscussion
The sample for this sensor is an array of SRPhotoplethysmogramSample objects.
You need to provide a reason to record photoplethysmogram (PPG) data by adding the SRSensorUsagePPG dictionary to the NSSensorKitUsageDetail key in the information property list.
You also need the ppg key added 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>ppg</string>
</array>
</dict>
</plist>